encode<V> static method

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

Implementation

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