AccountDetails.fromJson constructor

AccountDetails.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory AccountDetails.fromJson(Map<String, dynamic> json) {
  return AccountDetails(
    additionalContactEmailAddresses:
        (json['AdditionalContactEmailAddresses'] as List?)
            ?.whereNotNull()
            .map((e) => e as String)
            .toList(),
    contactLanguage:
        (json['ContactLanguage'] as String?)?.toContactLanguage(),
    mailType: (json['MailType'] as String?)?.toMailType(),
    reviewDetails: json['ReviewDetails'] != null
        ? ReviewDetails.fromJson(
            json['ReviewDetails'] as Map<String, dynamic>)
        : null,
    useCaseDescription: json['UseCaseDescription'] as String?,
    websiteURL: json['WebsiteURL'] as String?,
  );
}