AccountUserProfile.fromJson constructor

AccountUserProfile.fromJson(
  1. Map json_
)

Implementation

AccountUserProfile.fromJson(core.Map json_)
    : this(
        accountId: json_.containsKey('accountId')
            ? json_['accountId'] as core.String
            : null,
        active:
            json_.containsKey('active') ? json_['active'] as core.bool : null,
        advertiserFilter: json_.containsKey('advertiserFilter')
            ? ObjectFilter.fromJson(json_['advertiserFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        campaignFilter: json_.containsKey('campaignFilter')
            ? ObjectFilter.fromJson(json_['campaignFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        comments: json_.containsKey('comments')
            ? json_['comments'] as core.String
            : null,
        email:
            json_.containsKey('email') ? json_['email'] as core.String : null,
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        locale: json_.containsKey('locale')
            ? json_['locale'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        siteFilter: json_.containsKey('siteFilter')
            ? ObjectFilter.fromJson(
                json_['siteFilter'] as core.Map<core.String, core.dynamic>)
            : null,
        subaccountId: json_.containsKey('subaccountId')
            ? json_['subaccountId'] as core.String
            : null,
        traffickerType: json_.containsKey('traffickerType')
            ? json_['traffickerType'] as core.String
            : null,
        userAccessType: json_.containsKey('userAccessType')
            ? json_['userAccessType'] as core.String
            : null,
        userRoleFilter: json_.containsKey('userRoleFilter')
            ? ObjectFilter.fromJson(json_['userRoleFilter']
                as core.Map<core.String, core.dynamic>)
            : null,
        userRoleId: json_.containsKey('userRoleId')
            ? json_['userRoleId'] as core.String
            : null,
      );