Map<String, dynamic> toJson() { final Map<String, dynamic> data = new Map<String, dynamic>(); data['name'] = this.name; data['code'] = this.code; data['id'] = this.id; return data; }