fromJson static method
Returns a new DocumentFile instance and imports its values from
json
if it's non-null, null if json
is null.
Implementation
static DocumentFile? fromJson(Map<String, dynamic>? json) {
if (json == null) {
return null;
}
return DocumentFile(
contentType: DocumentFileContentTypeEnum.fromJson(json[r'contentType']),
name: json[r'name'],
);
}