encode<V> static method
Implementation
static V encode<V>(
IssuingPhysicalBundle instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
if (instance.features != null) {
IssuingPhysicalBundleFeatures.encode(
instance.features!,
container.nestedSingleValueContainer('features').encoder,
);
}
container.encodeString(
'id',
instance.id,
);
container.encodeBool(
'livemode',
instance.livemode,
);
container.encodeString(
'name',
instance.name,
);
container.encodeString(
'object',
'issuing.physical_bundle',
);
container.encodeString(
'status',
instance.status,
);
container.encodeString(
'type',
instance.type,
);
return container.value;
}