maybeGetObject<T> method

T? maybeGetObject<T>(
  1. String key, {
  2. required T fromJson(
    1. dynamic json
    ),
})

Returns the value of key parsed as JSON and converted with fromJson, or null if it isn't set, isn't valid JSON, or fromJson throws.

Implementation

T? maybeGetObject<T>(
  String key, {
  required T Function(dynamic json) fromJson,
}) => decodeJsonObjectOrNull<T>(maybeGetString(key), fromJson: fromJson);