encode<V> static method
V
encode<
V>( - UsageRecord instance,
- Encoder<V> encoder
)
Implementation
static V encode<V>(
UsageRecord instance,
Encoder<V> encoder,
) {
final container = encoder.container<String>();
container.encodeString(
'id',
instance.id,
);
container.encodeBool(
'livemode',
instance.livemode,
);
container.encodeString(
'object',
'usage_record',
);
container.encodeInt(
'quantity',
instance.quantity,
);
container.encodeString(
'subscription_item',
instance.subscriptionItem,
);
container.encodeDateTime(
'timestamp',
instance.timestamp,
);
return container.value;
}