Data.fromJson constructor
Data.fromJson(
- Object? j
Implementation
factory Data.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return Data(
key: switch (json['key']) {
null => null,
Object $1 => decodeString($1),
},
value: switch (json['value']) {
null => null,
Object $1 => decodeString($1),
},
);
}