map property

  1. @override
Map<String, JsonPayload>? map
override

Returns a Map or null if rawValue is not a Map Each value of the map is wrapped in a Json

Implementation

@override
Map<String, JsonPayload>? get map => (_rawValue is Map)
    ? (_rawValue as Map)
        .map<String, JsonPayload>((dynamic key, dynamic value) => MapEntry('$key', JsonPayload.fromDynamic(value)))
    : null;