MoveAnalysisResult.fromJson constructor

MoveAnalysisResult.fromJson(
  1. Map json_
)

Implementation

MoveAnalysisResult.fromJson(core.Map json_)
    : this(
        blockers: json_.containsKey('blockers')
            ? (json_['blockers'] as core.List)
                .map((value) => MoveImpact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
        warnings: json_.containsKey('warnings')
            ? (json_['warnings'] as core.List)
                .map((value) => MoveImpact.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );