IndustryModel.fromJson constructor

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

Implementation

IndustryModel.fromJson(Map<String, dynamic> json) {
  if (json["id"] is int) this.id = json["id"];
  if (json["industryName"] is String)
    this.industryName = json["industryName"];
  if (json["defaultAvatarPictureUrl"] is String)
    this.defaultAvatarPictureUrl = json["defaultAvatarPictureUrl"];
}