class Employee { int? id; String? name; Employee({ this.id, this.name, }); Employee.fromJson(Map json) { id = json['id']; name = json['fullName']; } Map toJson() { final Map data = new Map(); data['id'] = this.id; data['fullName'] = this.name; return data; } }