toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final fixedRate = this.fixedRate;
  final hTTPMethod = this.hTTPMethod;
  final host = this.host;
  final priority = this.priority;
  final reservoirSize = this.reservoirSize;
  final resourceARN = this.resourceARN;
  final serviceName = this.serviceName;
  final serviceType = this.serviceType;
  final uRLPath = this.uRLPath;
  final version = this.version;
  final attributes = this.attributes;
  final ruleARN = this.ruleARN;
  final ruleName = this.ruleName;
  return {
    'FixedRate': fixedRate,
    'HTTPMethod': hTTPMethod,
    'Host': host,
    'Priority': priority,
    'ReservoirSize': reservoirSize,
    'ResourceARN': resourceARN,
    'ServiceName': serviceName,
    'ServiceType': serviceType,
    'URLPath': uRLPath,
    'Version': version,
    if (attributes != null) 'Attributes': attributes,
    if (ruleARN != null) 'RuleARN': ruleARN,
    if (ruleName != null) 'RuleName': ruleName,
  };
}