fromJSON method

  1. @override
Observable<DateTime>? fromJSON(
  1. dynamic jsonValue, [
  2. DeserializationContext? context
])

Implementation

@override
Observable<DateTime>? fromJSON(dynamic jsonValue,
        [DeserializationContext? context]) =>
    jsonValue is String
        ? Observable<DateTime>(
            dateConverter.fromJSON(jsonValue, context) as DateTime)
        : jsonValue;