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