fromJSON method

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

Implementation

@override
Observable<String>? fromJSON(dynamic jsonValue,
        DeserializationContext context) =>
    jsonValue is String ? Observable<String>(jsonValue) : jsonValue;