Permission.fromJson constructor

Permission.fromJson(
  1. Map json_
)

Implementation

Permission.fromJson(core.Map json_)
    : this(
        apiDisabled: json_.containsKey('apiDisabled')
            ? json_['apiDisabled'] as core.bool
            : null,
        customRolesSupportLevel: json_.containsKey('customRolesSupportLevel')
            ? json_['customRolesSupportLevel'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        onlyInPredefinedRoles: json_.containsKey('onlyInPredefinedRoles')
            ? json_['onlyInPredefinedRoles'] as core.bool
            : null,
        primaryPermission: json_.containsKey('primaryPermission')
            ? json_['primaryPermission'] as core.String
            : null,
        stage:
            json_.containsKey('stage') ? json_['stage'] as core.String : null,
        title:
            json_.containsKey('title') ? json_['title'] as core.String : null,
      );