MissionTypeModel.fromJson constructor
MissionTypeModel.fromJson(
- Map<String, dynamic> json
)
Implementation
MissionTypeModel.fromJson(Map<String, dynamic> json) {
if (json["id"] is int) this.id = json["id"];
if (json["missionTypeName"] is String)
this.missionTypeName = json["missionTypeName"];
if (json["instruction"] is String) this.instruction = json["instruction"];
this.shortDescription = json["shortDescription"];
if (json["teaserVideoUrl"] is String)
this.teaserVideoUrl = json["teaserVideoUrl"];
if (json["tutoMissionTypeVideoUrl"] is String)
this.tutoMissionTypeVideoUrl = json["tutoMissionTypeVideoUrl"];
if (json["tutoSellerVideoUrl"] is String)
this.tutoSellerVideoUrl = json["tutoSellerVideoUrl"];
this.pictureUrl = json["pictureUrl"];
this.colorCode = json["colorCode"];
}