Map<String, Object?> toJson() { var members = this.members; final json = <String, Object?>{}; json[r'members'] = members.map((i) => i.toJson()).toList(); return json; }