encode<V> static method

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

Implementation

static V encode<V>(
  AccountExternalAccountCreatedEvent instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  AccountExternalAccountCreatedEventObject.encode(
    instance.object,
    container.nestedSingleValueContainer('object').encoder,
  );
  container.encodeString(
    'type',
    'account.external_account.created',
  );
  return container.value;
}