encode<V> static method

V encode<V>(
  1. ApplePayDomain instance,
  2. Encoder<V> encoder
)

Implementation

static V encode<V>(
  ApplePayDomain instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'created',
    instance.created,
  );
  container.encodeString(
    'domain_name',
    instance.domainName,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeBool(
    'livemode',
    instance.livemode,
  );
  container.encodeString(
    'object',
    'apple_pay_domain',
  );
  return container.value;
}