ListViolationsResponse.fromJson constructor

ListViolationsResponse.fromJson(
  1. Map json_
)

Implementation

ListViolationsResponse.fromJson(core.Map json_)
    : this(
        nextPageToken: json_.containsKey('nextPageToken')
            ? json_['nextPageToken'] as core.String
            : null,
        unreachable: json_.containsKey('unreachable')
            ? (json_['unreachable'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        violations: json_.containsKey('violations')
            ? (json_['violations'] as core.List)
                .map((value) => Violation.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );