User.fromJson constructor

User.fromJson(
  1. Map json_
)

Implementation

User.fromJson(core.Map json_)
    : this(
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        domainId: json_.containsKey('domainId')
            ? json_['domainId'] as core.String
            : null,
        isAnonymous: json_.containsKey('isAnonymous')
            ? json_['isAnonymous'] as core.bool
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        type: json_.containsKey('type') ? json_['type'] as core.String : null,
      );