FileModel.fromJson constructor

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

Implementation

FileModel.fromJson(Map<String, dynamic> json)
    : fileNm = json['fileNm'],
      fileSize = json['fileSize'],
      expire = json['expire'],
      fileKey = json['fileKey'],
      fileSizeText = json['fileSizeText'],
      fileExt = json['fileExt'],
      originFileNm = json['originFileNm'] {
  fileExt ??= originFileNm?.split(".").last;
}