@override Object toJson() => { if (fieldViolations.isNotDefault) 'fieldViolations': [for (final i in fieldViolations) i.toJson()], };