fromValidated static method

ZapReceipt fromValidated(
  1. Map<String, Object?> json
)

Implementation

static ZapReceipt fromValidated(Map<String, Object?> json) => ZapReceipt(
  id: json['id'] as String,
  ts: json['ts'] as String,
  missionId: json['missionId'] as String,
  verdict: json['verdict'] as String,
  exit: json['exit'] as int,
  chainDigest: json['chainDigest'] as String,
  stepsExecuted: json['stepsExecuted'] as int,
  stepsTotal: json['stepsTotal'] as int,
  checks: [
    for (final c in json['checks'] as List)
      ZapCheck.fromJson((c as Map).cast<String, Object?>()),
  ],
  at: json['at'] as String,
);