class CallSiteContactPerson { CallSiteContactPerson({ this.id, this.employeeCode, this.name, this.telephone, this.job, this.email, this.land, this.contactUserId, }); CallSiteContactPerson.fromJson(dynamic json) { id = json['id']; employeeCode = json['employeeCode']; name = json['name']; telephone = json['telephone']; job = json['job']; email = json['email']; land = json['land']; contactUserId = json['contactUserId']; } num id; String employeeCode; String name; String telephone; String job; String email; String land; String contactUserId; CallSiteContactPerson copyWith({ num id, String employeeCode, String name, String telephone, String job, String email, String land, String contactUserId, }) => CallSiteContactPerson( id: id ?? this.id, employeeCode: employeeCode ?? this.employeeCode, name: name ?? this.name, telephone: telephone ?? this.telephone, job: job ?? this.job, email: email ?? this.email, land: land ?? this.land, contactUserId: contactUserId ?? this.contactUserId, ); Map toJson() { final map = {}; map['id'] = id; map['employeeCode'] = employeeCode; map['name'] = name; map['telephone'] = telephone; map['job'] = job; map['email'] = email; map['land'] = land; map['contactUserId'] = contactUserId; return map; } }