LogMatch.fromJson constructor

LogMatch.fromJson(
  1. Map json_
)

Implementation

LogMatch.fromJson(core.Map json_)
    : this(
        filter: json_.containsKey('filter')
            ? json_['filter'] as core.String
            : null,
        labelExtractors: json_.containsKey('labelExtractors')
            ? (json_['labelExtractors']
                    as core.Map<core.String, core.dynamic>)
                .map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
      );