FileTransBean.fromJson constructor

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

Implementation

factory FileTransBean.fromJson(Map<String, dynamic> json) => FileTransBean(
      progress: json["progress"] ?? -1,
      error: json["error"] ?? -1,
      type: json["type"],
    );