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