API Docs for: 0.2.1
Show:

TransformDateAttribute Class

Module: utils
Parent Module: ember-jsonapi-resources

Constructor

TransformDateAttribute

()

Item Index

Methods

deserialize

(
  • date
)
Date | Null

Parameters:

  • date String

    usually in ISO format, must be a valid argument for Date

Returns:

Date | Null:

date value from JSON payload, or null

serialize

(
  • date
)
String | Null

Parameters:

  • date Date | String

Returns:

String | Null:

date value as ISO String for JSON payload, or null