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