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