class FavouriteDoctorListEntity { String? msg; int? code; List? data; FavouriteDoctorListEntity({this.msg, this.code, this.data}); FavouriteDoctorListEntity.fromJson(Map json) { msg = json['msg']; code = json['code']; if (json['data'] != null) { data = []; json['data'].forEach((v) { data!.add(new Data.fromJson(v)); }); } } Map toJson() { final Map data = new Map(); data['msg'] = this.msg; data['code'] = this.code; if (this.data != null) { data['data'] = this.data!.map((v) => v.toJson()).toList(); } return data; } } class Data { String? doctorId; String? avatar; String? doctorName; String? postName; String? label; String? briefIntroduction; Data( {this.doctorId, this.avatar, this.doctorName, this.postName, this.label, this.briefIntroduction}); Data.fromJson(Map json) { doctorId = json['doctorId']; avatar = json['avatar']; doctorName = json['doctorName']; postName = json['postName']; label = json['label']; briefIntroduction = json['briefIntroduction']; } Map toJson() { final Map data = new Map(); data['doctorId'] = this.doctorId; data['avatar'] = this.avatar; data['doctorName'] = this.doctorName; data['postName'] = this.postName; data['label'] = this.label; data['briefIntroduction'] = this.briefIntroduction; return data; } }