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