toMap method

Map<String, dynamic> toMap()

Serializes to a Map representation.

Implementation

Map<String, dynamic> toMap() {
  return {
    'path': path,
    'name': name,
    'mimeType': mimeType,
    'width': width,
    'height': height,
    'size': size ?? bytes?.lengthInBytes,
    'lastModified': lastModified?.millisecondsSinceEpoch,
  };
}