AccountSummary.fromJson constructor

AccountSummary.fromJson(
  1. Map json_
)

Implementation

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