RuntimeSettings.fromJson constructor

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

Implementation

factory RuntimeSettings.fromJson(
  Map<String, dynamic> jsonSerialization,
  _i1.SerializationManager serializationManager,
) {
  return RuntimeSettings(
    id: serializationManager.deserialize<int?>(jsonSerialization['id']),
    logSettings: serializationManager
        .deserialize<_i2.LogSettings>(jsonSerialization['logSettings']),
    logSettingsOverrides:
        serializationManager.deserialize<List<_i2.LogSettingsOverride>>(
            jsonSerialization['logSettingsOverrides']),
    logServiceCalls: serializationManager
        .deserialize<bool>(jsonSerialization['logServiceCalls']),
    logMalformedCalls: serializationManager
        .deserialize<bool>(jsonSerialization['logMalformedCalls']),
  );
}