encode<V> static method
Implementation
static V encode<V>(
IssuingAuthorizationMerchantData instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'category',
instance.category,
);
container.encodeString(
'category_code',
instance.categoryCode,
);
if (instance.city != null) {
container.encodeString(
'city',
instance.city!,
);
}
if (instance.country != null) {
container.encodeString(
'country',
instance.country!,
);
}
if (instance.name != null) {
container.encodeString(
'name',
instance.name!,
);
}
container.encodeString(
'network_id',
instance.networkId,
);
if (instance.postalCode != null) {
container.encodeString(
'postal_code',
instance.postalCode!,
);
}
if (instance.state != null) {
container.encodeString(
'state',
instance.state!,
);
}
if (instance.terminalId != null) {
container.encodeString(
'terminal_id',
instance.terminalId!,
);
}
if (instance.url != null) {
container.encodeString(
'url',
instance.url!,
);
}
return container.value;
}