toJson method
Implementation
Map<String, Object?> toJson() {
var contextId = this.contextId;
var isGlobalContext = this.isGlobalContext;
var projectId = this.projectId;
final json = <String, Object?>{};
json[r'contextId'] = contextId;
json[r'isGlobalContext'] = isGlobalContext;
if (projectId != null) {
json[r'projectId'] = projectId;
}
return json;
}