FileDownload.fromJson constructor

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

Parse from a json

Implementation

factory FileDownload.fromJson(Map<String, dynamic> json) => FileDownload(
      fileId: json['file_id'],
      message: Message.fromJson(json['message']),
      addDate: json['add_date'],
      completeDate: json['complete_date'],
      isPaused: json['is_paused'],
    );