toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final dataTraceEnabled = this.dataTraceEnabled;
  final detailedMetricsEnabled = this.detailedMetricsEnabled;
  final loggingLevel = this.loggingLevel;
  final throttlingBurstLimit = this.throttlingBurstLimit;
  final throttlingRateLimit = this.throttlingRateLimit;
  return {
    if (dataTraceEnabled != null) 'dataTraceEnabled': dataTraceEnabled,
    if (detailedMetricsEnabled != null)
      'detailedMetricsEnabled': detailedMetricsEnabled,
    if (loggingLevel != null) 'loggingLevel': loggingLevel.toValue(),
    if (throttlingBurstLimit != null)
      'throttlingBurstLimit': throttlingBurstLimit,
    if (throttlingRateLimit != null)
      'throttlingRateLimit': throttlingRateLimit,
  };
}