toMap method

Map<String, dynamic> toMap()

Converts the ImageModel to a map for serialization.

Implementation

Map<String, dynamic> toMap() {
  return {
    'id': id,
    'name': name,
    'path': path,
    'uri': uri,
    'size': size,
    'dateAdded': dateAdded,
    'dateModified': dateModified,
    'width': width,
    'height': height,
    'mimeType': mimeType,
    'fileExtension': fileExtension,
  };
}