Template.fromJson constructor

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

Implementation

factory Template.fromJson(Map<String, dynamic> json) {
  return Template(
      (json['stages'] as List).map<Stage>((e) => Stage.fromJson(e)).toList());
}