AccountBusinessProfile.fromJson constructor
AccountBusinessProfile.fromJson(
- Object? json
Implementation
factory AccountBusinessProfile.fromJson(Object? json) {
final map = (json as Map).cast<String, Object?>();
return AccountBusinessProfile(
annualRevenue: map['annual_revenue'] == null
? null
: AccountBusinessProfileAnnualRevenue.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
: AccountMonthlyEstimatedRevenue.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
: AccountBusinessProfileSupportAddress.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),
);
}