StorageFile.fromJson constructor

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

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'];
}