class UploadModel {
  bool flag;
  String msg;
  String pathUrl;
  String path;
  String nameOrg;
  String nameNew;
  int size;
  String datas;
  String coverUrl;
  String cover;

  UploadModel(
      {this.flag,
      this.msg,
      this.pathUrl,
      this.path,
      this.nameOrg,
      this.nameNew,
      this.size,
      this.datas,
      this.coverUrl,
      this.cover,
  });

  UploadModel.fromJson(Map<String, dynamic> json) {
    flag = json['flag'];
    msg = json['msg'];
    pathUrl = json['pathUrl'];
    path = json['path'];
    nameOrg = json['nameOrg'];
    nameNew = json['nameNew'];
    size = json['size'];
    datas = json['datas'];
    coverUrl = json['coverUrl'];
    cover = json['cover'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['flag'] = this.flag;
    data['msg'] = this.msg;
    data['pathUrl'] = this.pathUrl;
    data['path'] = this.path;
    data['nameOrg'] = this.nameOrg;
    data['nameNew'] = this.nameNew;
    data['size'] = this.size;
    data['datas'] = this.datas;
    data['coverUrl'] = this.coverUrl;
    data['cover'] = this.cover;
    return data;
  }
}
