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