Map<String, dynamic> toMap() { return <String, dynamic>{ 'type': ?type, 'userAssignment': ?userAssignment, }; }