HtmlEditorFile.fromMap constructor
HtmlEditorFile.fromMap(
- Map<String, dynamic> map
)
Implementation
factory HtmlEditorFile.fromMap(Map<String, dynamic> map) => HtmlEditorFile(
name: map['name'] as String,
size: map['size'] != null ? map['size'] as int : null,
mimeType: map['mimeType'] != null ? map['mimeType'] as String : null,
base64: map['base64'] as String,
lastModified: map['lastModified'] != null ? map['lastModified'] as int : null,
lastModifiedDate: map['lastModifiedDate'] != null
? DateTime.tryParse(map['lastModifiedDate'] as String)
: null,
);