FileVersion.fromJson constructor

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

Creates a FileVersion instance from a JSON representation.

Implementation

FileVersion.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'];
  versionId = json['versionId'];
  isLatest = json['isLatest'];
}