WebPropertySummary.fromJson constructor

WebPropertySummary.fromJson(
  1. Map json_
)

Implementation

WebPropertySummary.fromJson(core.Map json_)
    : this(
        id: json_.containsKey('id') ? json_['id'] as core.String : null,
        internalWebPropertyId: json_.containsKey('internalWebPropertyId')
            ? json_['internalWebPropertyId'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        level:
            json_.containsKey('level') ? json_['level'] as core.String : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        profiles: json_.containsKey('profiles')
            ? (json_['profiles'] as core.List)
                .map((value) => ProfileSummary.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        starred: json_.containsKey('starred')
            ? json_['starred'] as core.bool
            : null,
        websiteUrl: json_.containsKey('websiteUrl')
            ? json_['websiteUrl'] as core.String
            : null,
      );