encode<V> static method

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

Implementation

static V encode<V>(
  TransactionsStatusTransitions instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.postedAt != null) {
    AccountsCreated.encode(
      instance.postedAt!,
      container.nestedSingleValueContainer('posted_at').encoder,
    );
  }
  return container.value;
}