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