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