AccountCreateOptionsBusinessProfile.fromJson constructor
AccountCreateOptionsBusinessProfile.fromJson(
- Object? json
Implementation
factory AccountCreateOptionsBusinessProfile.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountCreateOptionsBusinessProfile(
annualRevenue: map['annual_revenue'] == null
? null
: AccountAnnualRevenue.fromJson(map['annual_revenue']),
estimatedWorkerCount: map['estimated_worker_count'] == null
? null
: (map['estimated_worker_count'] as num).toInt(),
mcc: map['mcc'] == null ? null : (map['mcc'] as String),
monthlyEstimatedRevenue: map['monthly_estimated_revenue'] == null
? null
: MandateSingleUse.fromJson(map['monthly_estimated_revenue']),
name: map['name'] == null ? null : (map['name'] as String),
productDescription: map['product_description'] == null
? null
: (map['product_description'] as String),
supportAddress: map['support_address'] == null
? null
: AccountSupportAddress.fromJson(map['support_address']),
supportEmail: map['support_email'] == null
? null
: (map['support_email'] as String),
supportPhone: map['support_phone'] == null
? null
: (map['support_phone'] as String),
supportUrl:
map['support_url'] == null ? null : (map['support_url'] as String),
url: map['url'] == null ? null : (map['url'] as String),
);
}