serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeStringValue('charge', charge);
writer.writeStringValue('payout', payout);
writer.writeEnumValue<PlatformEarningFeeSourceType>(
'type', type_, (e) => e?.value);
writer.writeAdditionalData(additionalData);
}