toJson method

Map<String, dynamic> toJson()

Returns a JSON representation of StorageFile.

Implementation

Map<String, dynamic> toJson() {
  return {
    'Name': name,
    'IsFolder': isFolder,
    'ModifiedDate':
        modifiedDate == null ? '' : modifiedDate!.toUtc().toIso8601String(),
    'Size': size,
    'Path': path
  };
}