Constraint.fromJson constructor

Constraint.fromJson(
  1. Map json_
)

Implementation

Constraint.fromJson(core.Map json_)
    : this(
        booleanConstraint: json_.containsKey('booleanConstraint')
            ? BooleanConstraint.fromJson(json_['booleanConstraint']
                as core.Map<core.String, core.dynamic>)
            : null,
        constraintDefault: json_.containsKey('constraintDefault')
            ? json_['constraintDefault'] as core.String
            : null,
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        listConstraint: json_.containsKey('listConstraint')
            ? ListConstraint.fromJson(json_['listConstraint']
                as core.Map<core.String, core.dynamic>)
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        version: json_.containsKey('version')
            ? json_['version'] as core.int
            : null,
      );