fromJSON method

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

Implementation

@override
Observable<bool>? fromJSON(dynamic jsonValue,
        DeserializationContext context) =>
    (jsonValue is String || jsonValue is bool)
        ? Observable<bool>(
            defaultConverter.fromJSON(jsonValue, context) as bool)
        : jsonValue;