encode<V> static method

Implementation

static V encode<V>(
  TreasuryInboundTransfersResourceInboundTransferResourceStatusTransitions
      instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.canceledAt != null) {
    container.encodeDateTime(
      'canceled_at',
      instance.canceledAt!,
    );
  }
  if (instance.failedAt != null) {
    container.encodeDateTime(
      'failed_at',
      instance.failedAt!,
    );
  }
  if (instance.succeededAt != null) {
    container.encodeDateTime(
      'succeeded_at',
      instance.succeededAt!,
    );
  }
  return container.value;
}