Map<String, dynamic> toMap() { return {'name': name, 'id': id, 'customAttributes': customAttributes}; }