PaymentAccountFormField constructor

PaymentAccountFormField({
  1. PaymentAccountFormField_FieldId? id,
  2. PaymentAccountFormField_Component? component,
  3. String? type,
  4. String? label,
  5. String? value,
  6. int? minLength,
  7. int? maxLength,
  8. Iterable<TradeCurrency>? supportedCurrencies,
  9. Iterable<Country>? supportedCountries,
  10. Iterable<Country>? supportedSepaEuroCountries,
  11. Iterable<Country>? supportedSepaNonEuroCountries,
  12. Iterable<String>? requiredForCountries,
})

Implementation

factory PaymentAccountFormField({
  PaymentAccountFormField_FieldId? id,
  PaymentAccountFormField_Component? component,
  $core.String? type,
  $core.String? label,
  $core.String? value,
  $core.int? minLength,
  $core.int? maxLength,
  $core.Iterable<TradeCurrency>? supportedCurrencies,
  $core.Iterable<Country>? supportedCountries,
  $core.Iterable<Country>? supportedSepaEuroCountries,
  $core.Iterable<Country>? supportedSepaNonEuroCountries,
  $core.Iterable<$core.String>? requiredForCountries,
}) {
  final $result = create();
  if (id != null) {
    $result.id = id;
  }
  if (component != null) {
    $result.component = component;
  }
  if (type != null) {
    $result.type = type;
  }
  if (label != null) {
    $result.label = label;
  }
  if (value != null) {
    $result.value = value;
  }
  if (minLength != null) {
    $result.minLength = minLength;
  }
  if (maxLength != null) {
    $result.maxLength = maxLength;
  }
  if (supportedCurrencies != null) {
    $result.supportedCurrencies.addAll(supportedCurrencies);
  }
  if (supportedCountries != null) {
    $result.supportedCountries.addAll(supportedCountries);
  }
  if (supportedSepaEuroCountries != null) {
    $result.supportedSepaEuroCountries.addAll(supportedSepaEuroCountries);
  }
  if (supportedSepaNonEuroCountries != null) {
    $result.supportedSepaNonEuroCountries.addAll(supportedSepaNonEuroCountries);
  }
  if (requiredForCountries != null) {
    $result.requiredForCountries.addAll(requiredForCountries);
  }
  return $result;
}