@override Object toJson() => { if (entityId.isNotDefault) 'entityId': entityId, if (data.isNotDefault) 'data': encodeList(data), };