OperationProgress.fromJson constructor

OperationProgress.fromJson(
  1. Map json_
)

Implementation

OperationProgress.fromJson(core.Map json_)
    : this(
        metrics: json_.containsKey('metrics')
            ? (json_['metrics'] as core.List)
                .map((value) => Metric.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        name: json_.containsKey('name') ? json_['name'] as core.String : null,
        stages: json_.containsKey('stages')
            ? (json_['stages'] as core.List)
                .map((value) => OperationProgress.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        status: json_.containsKey('status')
            ? json_['status'] as core.String
            : null,
      );