ImageInfoes.fromMap constructor
ImageInfoes.fromMap(
- Map<String, dynamic> map
)
Implementation
factory ImageInfoes.fromMap(Map<String, dynamic> map) {
return ImageInfoes(
fileFormat: FileFormat.values.byName(map['fileFormat']),
fileSize: map['fileSize'],
imagePixWidth: map['imagePixWidth'],
imagePixHeight: map['imagePixHeight'],
fileName: map['fileName'],
captureDate: map['captureDate'] != null ? DateTime.fromMillisecondsSinceEpoch(
(map['captureDate'] as double).toInt()) : null,
fileId: map['fileId'],
);
}