encode<V> static method

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

Implementation

static V encode<V>(
  ChargeFraudDetails instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.stripeReport != null) {
    container.encodeString(
      'stripe_report',
      instance.stripeReport!,
    );
  }
  if (instance.userReport != null) {
    container.encodeString(
      'user_report',
      instance.userReport!,
    );
  }
  return container.value;
}