build method
Builds a map representation of the GroupConfig
instance.
This method converts the group configuration settings into a map, facilitating easier access and manipulation of group configuration settings.
@return A map representing the group configuration settings, or null if the instance is null.
Implementation
Map? build() {
if (this != null) {
return {
"enableGroup": this!.enableGroupCreation,
"maxMembersCount": this!.maxMembersCount,
"adminOnlyAddRemoveAccess": this!.adminOnlyAddRemoveAccess
};
} else {
return null;
}
}