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