BackendServiceLogConfig.fromJson constructor

BackendServiceLogConfig.fromJson(
  1. Map json_
)

Implementation

BackendServiceLogConfig.fromJson(core.Map json_)
    : this(
        enable:
            json_.containsKey('enable') ? json_['enable'] as core.bool : null,
        optionalFields: json_.containsKey('optionalFields')
            ? (json_['optionalFields'] as core.List)
                .map((value) => value as core.String)
                .toList()
            : null,
        optionalMode: json_.containsKey('optionalMode')
            ? json_['optionalMode'] as core.String
            : null,
        sampleRate: json_.containsKey('sampleRate')
            ? (json_['sampleRate'] as core.num).toDouble()
            : null,
      );