toJson method
Implementation
Map<String, Object?> toJson() {
var contentStatesAllowed = this.contentStatesAllowed;
var customContentStatesAllowed = this.customContentStatesAllowed;
var spaceContentStatesAllowed = this.spaceContentStatesAllowed;
var spaceContentStates = this.spaceContentStates;
final json = <String, Object?>{};
json[r'contentStatesAllowed'] = contentStatesAllowed;
json[r'customContentStatesAllowed'] = customContentStatesAllowed;
json[r'spaceContentStatesAllowed'] = spaceContentStatesAllowed;
json[r'spaceContentStates'] =
spaceContentStates.map((i) => i.toJson()).toList();
return json;
}