MapValue.fromJson constructor
MapValue.fromJson(
- Object? j
Implementation
factory MapValue.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return MapValue(
fields: switch (json['fields']) {
null => {},
Map<String, Object?> $1 => {
for (final e in $1.entries)
decodeString(e.key): Value.fromJson(e.value),
},
_ => throw const FormatException('"fields" is not an object'),
},
);
}