File.fromJson constructor

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

Creates the File object from the given JSON model.

Implementation

factory File.fromJson(Map<String, dynamic> json) {
  return File(
    fileId: json['file_id'],
    fileUniqueId: json['file_unique_id'],
    fileSize: json['file_size'],
    filePath: json['file_path'],
  );
}