RouteSettings.fromJson constructor

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

Implementation

factory RouteSettings.fromJson(Map<String, dynamic> json) {
  return RouteSettings(
    dataTraceEnabled: json['dataTraceEnabled'] as bool?,
    detailedMetricsEnabled: json['detailedMetricsEnabled'] as bool?,
    loggingLevel: (json['loggingLevel'] as String?)?.toLoggingLevel(),
    throttlingBurstLimit: json['throttlingBurstLimit'] as int?,
    throttlingRateLimit: json['throttlingRateLimit'] as double?,
  );
}