encode<V> static method
Implementation
static V encode<V>(
PaymentMethodDomainResourcePaymentMethodStatus instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
BillingMeterStatus.encode(
instance.status,
container.nestedSingleValueContainer('status').encoder,
);
if (instance.statusDetails != null) {
PaymentMethodDomainResourcePaymentMethodStatusDetails.encode(
instance.statusDetails!,
container.nestedSingleValueContainer('status_details').encoder,
);
}
return container.value;
}