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