User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        about:
            json_.containsKey('about') ? json_['about'] as core.String : null,
        blogs: json_.containsKey('blogs')
            ? UserBlogs.fromJson(
                json_['blogs'] as core.Map<core.String, core.dynamic>)
            : null,
        created: json_.containsKey('created')
            ? json_['created'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] 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')
            ? UserLocale.fromJson(
                json_['locale'] as core.Map<core.String, core.dynamic>)
            : null,
        selfLink: json_.containsKey('selfLink')
            ? json_['selfLink'] as core.String
            : null,
        url: json_.containsKey('url') ? json_['url'] as core.String : null,
      );