ListRateBasedRulesResponse.fromJson constructor

ListRateBasedRulesResponse.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ListRateBasedRulesResponse.fromJson(Map<String, dynamic> json) {
  return ListRateBasedRulesResponse(
    nextMarker: json['NextMarker'] as String?,
    rules: (json['Rules'] as List?)
        ?.whereNotNull()
        .map((e) => RuleSummary.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}