Rule.fromJson constructor

Rule.fromJson(
  1. Map json_
)

Implementation

Rule.fromJson(core.Map json_)
    : this(
        description: json_.containsKey('description')
            ? json_['description'] as core.String
            : null,
        displayName: json_.containsKey('displayName')
            ? json_['displayName'] as core.String
            : null,
        errorMessage: json_.containsKey('errorMessage')
            ? json_['errorMessage'] as core.String
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        primaryCategory: json_.containsKey('primaryCategory')
            ? json_['primaryCategory'] as core.String
            : null,
        remediation: json_.containsKey('remediation')
            ? json_['remediation'] as core.String
            : null,
        revisionId: json_.containsKey('revisionId')
            ? json_['revisionId'] as core.String
            : null,
        secondaryCategory: json_.containsKey('secondaryCategory')
            ? json_['secondaryCategory'] as core.String
            : null,
        severity: json_.containsKey('severity')
            ? json_['severity'] as core.String
            : null,
        tags: json_.containsKey('tags')
            ? (json_['tags'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        uri: json_.containsKey('uri') ? json_['uri'] as core.String : null,
      );