class TimeZoneModel { int id; int gmtOffset; String gmtOffsetName; String abbreviation; String tzName; String zoneName; TimeZoneModel( {this.id, this.gmtOffset, this.gmtOffsetName, this.abbreviation, this.tzName, this.zoneName}); factory TimeZoneModel.fromJson(Map json)=> TimeZoneModel( id: json["id"], gmtOffset: json["gmtOffset"], gmtOffsetName: json["gmtOffsetName"], abbreviation: json["abbreviation"], tzName: json["tzName"], zoneName: json["zoneName"], ); MaptoJson()=>{ "id":id, "gmtOffset":gmtOffset, "gmtOffsetName":gmtOffsetName, "abbreviation":abbreviation, "tzName":tzName, "zoneName":zoneName, }; }