toAgentParameterField method

AgentParameterField toAgentParameterField()

Implementation

AgentParameterField toAgentParameterField() {
  switch (this) {
    case 'MaxStackDepth':
      return AgentParameterField.maxStackDepth;
    case 'MemoryUsageLimitPercent':
      return AgentParameterField.memoryUsageLimitPercent;
    case 'MinimumTimeForReportingInMilliseconds':
      return AgentParameterField.minimumTimeForReportingInMilliseconds;
    case 'ReportingIntervalInMilliseconds':
      return AgentParameterField.reportingIntervalInMilliseconds;
    case 'SamplingIntervalInMilliseconds':
      return AgentParameterField.samplingIntervalInMilliseconds;
  }
  throw Exception('$this is not known in enum AgentParameterField');
}