WorkforcePool.fromJson constructor

WorkforcePool.fromJson(
  1. Map json_
)

Implementation

WorkforcePool.fromJson(core.Map json_)
    : this(
        accessRestrictions: json_.containsKey('accessRestrictions')
            ? AccessRestrictions.fromJson(json_['accessRestrictions']
                as core.Map<core.String, core.dynamic>)
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        disabled: json_.containsKey('disabled')
            ? json_['disabled'] as core.bool
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        expireTime: json_.containsKey('expireTime')
            ? json_['expireTime'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        parent: json_.containsKey('parent')
            ? json_['parent'] as core.String
            : null,
        sessionDuration: json_.containsKey('sessionDuration')
            ? json_['sessionDuration'] as core.String
            : null,
        state:
            json_.containsKey('state') ? json_['state'] as core.String : null,
      );