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