StageDeclaration.fromJson constructor

StageDeclaration.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory StageDeclaration.fromJson(Map<String, dynamic> json) {
  return StageDeclaration(
    actions: (json['actions'] as List)
        .whereNotNull()
        .map((e) => ActionDeclaration.fromJson(e as Map<String, dynamic>))
        .toList(),
    name: json['name'] as String,
    blockers: (json['blockers'] as List?)
        ?.whereNotNull()
        .map((e) => BlockerDeclaration.fromJson(e as Map<String, dynamic>))
        .toList(),
  );
}