$UserProfile.fromJson constructor Null safety

$UserProfile.fromJson(
  1. Map _json
)

Implementation

$UserProfile.fromJson(core.Map _json)
    : this(
        accountId: _json.containsKey('accountId')
            ? _json['accountId'] as core.String
            : null,
        accountName: _json.containsKey('accountName')
            ? _json['accountName'] as core.String
            : null,
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        profileId: _json.containsKey('profileId')
            ? _json['profileId'] as core.String
            : null,
        subAccountId: _json.containsKey('subAccountId')
            ? _json['subAccountId'] as core.String
            : null,
        subAccountName: _json.containsKey('subAccountName')
            ? _json['subAccountName'] as core.String
            : null,
        userName: _json.containsKey('userName')
            ? _json['userName'] as core.String
            : null,
      );