RateBasedStatement.fromJson constructor

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

Implementation

factory RateBasedStatement.fromJson(Map<String, dynamic> json) {
  return RateBasedStatement(
    aggregateKeyType: (json['AggregateKeyType'] as String)
        .toRateBasedStatementAggregateKeyType(),
    limit: json['Limit'] as int,
    forwardedIPConfig: json['ForwardedIPConfig'] != null
        ? ForwardedIPConfig.fromJson(
            json['ForwardedIPConfig'] as Map<String, dynamic>)
        : null,
    scopeDownStatement: json['ScopeDownStatement'] != null
        ? Statement.fromJson(
            json['ScopeDownStatement'] as Map<String, dynamic>)
        : null,
  );
}