encode<V> static method

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

Implementation

static V encode<V>(
  AccountLink instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  container.encodeDateTime(
    'created',
    instance.created,
  );
  container.encodeDateTime(
    'expires_at',
    instance.expiresAt,
  );
  container.encodeString(
    'object',
    'account_link',
  );
  container.encodeString(
    'url',
    instance.url,
  );
  return container.value;
}