SetupStep.fromJson constructor
The step of json, an object of the catalog (see toJson).
Implementation
factory SetupStep.fromJson(Map<String, Object?> json) => SetupStep(
id: json['id']! as String,
title: json['title']! as String,
owner: json['owner']! as String,
ownerKind: SetupStepOwnerKind.values.byName(
json['ownerKind']! as String,
),
ownerName: json['ownerName']! as String,
neededBy: [
for (final module in json['neededBy']! as List<Object?>)
module! as String,
],
);