User.fromJson constructor

User.fromJson(
  1. Map _json
)

Implementation

User.fromJson(core.Map _json)
    : this(
        etag: _json.containsKey('etag') ? _json['etag'] as core.String : null,
        host: _json.containsKey('host') ? _json['host'] as core.String : null,
        instance: _json.containsKey('instance')
            ? _json['instance'] as core.String
            : null,
        kind: _json.containsKey('kind') ? _json['kind'] as core.String : null,
        name: _json.containsKey('name') ? _json['name'] as core.String : null,
        password: _json.containsKey('password')
            ? _json['password'] as core.String
            : null,
        project: _json.containsKey('project')
            ? _json['project'] as core.String
            : null,
        sqlserverUserDetails: _json.containsKey('sqlserverUserDetails')
            ? SqlServerUserDetails.fromJson(_json['sqlserverUserDetails']
                as core.Map<core.String, core.dynamic>)
            : null,
        type: _json.containsKey('type') ? _json['type'] as core.String : null,
      );