StorageFile.fromJson constructor

StorageFile.fromJson(
  1. Map<String, dynamic> json
)

Creates a StorageFile instance from a JSON representation.

Implementation

StorageFile.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  isFolder = json['isFolder'];
  modifiedDate = json['modifiedDate'] == null
      ? null
      : DateTime.parse(json['modifiedDate']);
  size = json['size'];
  path = json['path'];
}