encode<V> static method

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

Implementation

static V encode<V>(
  PlatformTaxFee instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeString(
    'account',
    instance.account,
  );
  container.encodeString(
    'id',
    instance.id,
  );
  container.encodeString(
    'object',
    'platform_tax_fee',
  );
  container.encodeString(
    'source_transaction',
    instance.sourceTransaction,
  );
  container.encodeString(
    'type',
    instance.type,
  );
  return container.value;
}