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