Task.fromJson constructor

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

Implementation

factory Task.fromJson(Map<String, dynamic> json) {
  return Task(
      0, json['name'], json['points'], json['type'], json['description']);
}