OrderedTask.fromJson constructor

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

Implementation

factory OrderedTask.fromJson(Map<String, dynamic> json) => OrderedTask(
      id: TaskIdentifier.fromJson(json),
      steps: json['steps'] != null
          ? (json['steps'] as List<Map<String, dynamic>>)
              .map((step) => Step.fromJson(step))
              .toList()
          : [],
    );