@override Map<String, Object?> toJson() => { if (type != null) "type": encodeValue(type), if (id != null) "id": encodeValue(id), if (name != null) "name": encodeValue(name), };