core.Map<core.String, core.dynamic> toJson() => { if (errorMessages != null) 'errorMessages': errorMessages!, };