Task.fromJson constructor

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

Implementation

factory Task.fromJson(Map<String, dynamic> json) {
  return Task(
    status: (json['Status'] as String).toStatus(),
    progressPercent: json['ProgressPercent'] as int?,
    statusDetail: json['StatusDetail'] as String?,
  );
}