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