RuntimeSettings.fromJson constructor

RuntimeSettings.fromJson(
  1. Map<String, dynamic> jsonSerialization
)

Implementation

factory RuntimeSettings.fromJson(Map<String, dynamic> jsonSerialization) {
  return RuntimeSettings(
    id: jsonSerialization['id'] as int?,
    logSettings: _i2.LogSettings.fromJson(
        (jsonSerialization['logSettings'] as Map<String, dynamic>)),
    logSettingsOverrides: (jsonSerialization['logSettingsOverrides'] as List)
        .map((e) =>
            _i2.LogSettingsOverride.fromJson((e as Map<String, dynamic>)))
        .toList(),
    logServiceCalls: jsonSerialization['logServiceCalls'] as bool,
    logMalformedCalls: jsonSerialization['logMalformedCalls'] as bool,
  );
}