AccountStatus.fromJson constructor

AccountStatus.fromJson(
  1. Map json_
)

Implementation

AccountStatus.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        accountLevelIssues: json_.containsKey('accountLevelIssues')
            ? (json_['accountLevelIssues'] as core.List)
                .map((value) => AccountStatusAccountLevelIssue.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        accountManagement: json_.containsKey('accountManagement')
            ? json_['accountManagement'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        products: json_.containsKey('products')
            ? (json_['products'] as core.List)
                .map((value) => AccountStatusProducts.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        websiteClaimed: json_.containsKey('websiteClaimed')
            ? json_['websiteClaimed'] as core.bool
            : null,
      );