PaymentAccountFormField constructor
PaymentAccountFormField({
- PaymentAccountFormField_FieldId? id,
- PaymentAccountFormField_Component? component,
- String? type,
- String? label,
- String? value,
- int? minLength,
- int? maxLength,
- Iterable<
TradeCurrency> ? supportedCurrencies, - Iterable<
Country> ? supportedCountries, - Iterable<
Country> ? supportedSepaEuroCountries, - Iterable<
Country> ? supportedSepaNonEuroCountries, - 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;
}