encode<V> static method
Implementation
static V encode<V>(
AccountPaymentsSettings instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.statementDescriptor != null) {
container.encodeString(
'statement_descriptor',
instance.statementDescriptor!,
);
}
if (instance.statementDescriptorKana != null) {
container.encodeString(
'statement_descriptor_kana',
instance.statementDescriptorKana!,
);
}
if (instance.statementDescriptorKanji != null) {
container.encodeString(
'statement_descriptor_kanji',
instance.statementDescriptorKanji!,
);
}
if (instance.statementDescriptorPrefixKana != null) {
container.encodeString(
'statement_descriptor_prefix_kana',
instance.statementDescriptorPrefixKana!,
);
}
if (instance.statementDescriptorPrefixKanji != null) {
container.encodeString(
'statement_descriptor_prefix_kanji',
instance.statementDescriptorPrefixKanji!,
);
}
return container.value;
}