AgentConfiguration.fromJson constructor

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

Implementation

factory AgentConfiguration.fromJson(Map<String, dynamic> json) {
  return AgentConfiguration(
    periodInSeconds: json['periodInSeconds'] as int,
    shouldProfile: json['shouldProfile'] as bool,
    agentParameters: (json['agentParameters'] as Map<String, dynamic>?)
        ?.map((k, e) => MapEntry(k.toAgentParameterField(), e as String)),
  );
}