serialize method
Serializes information the current object
writer Serialization writer to use to serialize this model
Implementation
@override
void serialize(SerializationWriter writer) {
writer.writeIntValue('active_from', activeFrom);
writer.writeStringValue('country', country);
writer.writeObjectValue<TaxProductRegistrationsResourceCountryOptions>(
'country_options', countryOptions);
writer.writeIntValue('created', created);
writer.writeIntValue('expires_at', expiresAt);
writer.writeStringValue('id', id);
writer.writeBoolValue('livemode', value: livemode);
writer.writeEnumValue<RegistrationObject>(
'object', object, (e) => e?.value);
writer.writeEnumValue<RegistrationStatus>(
'status', status, (e) => e?.value);
writer.writeAdditionalData(additionalData);
}