FileOrId.fromJson constructor
FileOrId.fromJson(
- Object? json
Implementation
factory FileOrId.fromJson(Object? json) {
if (json is String) {
return FileId(id: json);
}
return File.fromJson(json);
}