ListRulesetsResponse.fromJson constructor

ListRulesetsResponse.fromJson(
  1. Map _json
)

Implementation

ListRulesetsResponse.fromJson(core.Map _json)
    : this(
        nextPageToken: _json.containsKey('nextPageToken')
            ? _json['nextPageToken'] as core.String
            : null,
        rulesets: _json.containsKey('rulesets')
            ? (_json['rulesets'] as core.List)
                .map((value) => Ruleset.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );