encode<V> static method

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

Implementation

static V encode<V>(
  AccountSessionPayoutsFeatures instance,
  Encoder<V> encoder,
) {
  final container = encoder.container<String>();
  if (instance.editPayoutSchedule != null) {
    container.encodeBool(
      'edit_payout_schedule',
      instance.editPayoutSchedule!,
    );
  }
  if (instance.instantPayouts != null) {
    container.encodeBool(
      'instant_payouts',
      instance.instantPayouts!,
    );
  }
  if (instance.standardPayouts != null) {
    container.encodeBool(
      'standard_payouts',
      instance.standardPayouts!,
    );
  }
  return container.value;
}