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