OrderedTask.fromJson constructor

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

Implementation

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