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