StopTaskResponse.fromJson constructor

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

Implementation

factory StopTaskResponse.fromJson(Map<String, dynamic> json) {
  return StopTaskResponse(
    task: json['task'] != null
        ? Task.fromJson(json['task'] as Map<String, dynamic>)
        : null,
  );
}