CloudFiles.fromJson constructor

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

Factory constructor to create a CloudFiles object from JSON

Implementation

factory CloudFiles.fromJson(Map<String, dynamic> json) => CloudFiles(
      json['id'],
      json['title'],
      json['filePath'],
      DateTime.parse(json['fileDate'].toString()),
      json['sizeInBytes'],
      DateTime.parse(json['lastSyncDt'].toString()),
      relativePath: json['relativePath'],
    );