CommonMedia.fromJson constructor
CommonMedia.fromJson(
- Map<String, dynamic> json
)
Implementation
CommonMedia.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) {
id = json["id"];
}
if (json["label"] is String) {
label = json["label"];
}
if (json["url"] is String) {
url = json["url"];
}
if (json["catId"] is int) {
catId = json["catId"];
}
if (json["svg"] is String) {
svg = json["svg"];
}
if (json["png"] is String) {
png = json["png"];
}
if (json["gif"] is String) {
gif = json["gif"];
}
if (json["compressedUrl"] is String) {
compressedUrl = json["compressedUrl"];
}
if (json["superCompressedUrl"] is String) {
superCompressedUrl = json["superCompressedUrl"];
}
if (json["whisePictureId"] is int) {
whisePictureId = json["whisePictureId"];
}
if (json["purpose"] is String) {
purpose = json["purpose"];
}
if (json["s3BucketId"] is int) {
s3BucketId = json["s3BucketId"];
}
if (json["bucketFolderUuid"] is String) {
bucketFolderUuid = json["bucketFolderUuid"];
}
if (json["fileTypeId"] is int) {
fileTypeId = json["fileTypeId"];
}
if (json["isExternal"] is int) {
isExternal = json["isExternal"];
}
}