Environment.fromJson constructor

Environment.fromJson(
  1. Map json_
)

Implementation

Environment.fromJson(core.Map json_)
    : this(
        benchmarkIndex: json_.containsKey('benchmarkIndex')
            ? (json_['benchmarkIndex'] as core.num).toDouble()
            : null,
        credits: json_.containsKey('credits')
            ? (json_['credits'] as core.Map<core.String, core.dynamic>).map(
                (key, value) => core.MapEntry(
                  key,
                  value as core.String,
                ),
              )
            : null,
        hostUserAgent: json_.containsKey('hostUserAgent')
            ? json_['hostUserAgent'] as core.String
            : null,
        networkUserAgent: json_.containsKey('networkUserAgent')
            ? json_['networkUserAgent'] as core.String
            : null,
      );