IdleNotificationMessage.fromJson constructor

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

Implementation

factory IdleNotificationMessage.fromJson(Map<String, dynamic> json) {
  return IdleNotificationMessage(
    from: json['from'] as String? ?? '',
    timestamp: json['timestamp'] as String? ?? '',
    idleReason: json['idleReason'] as String?,
    summary: json['summary'] as String?,
    completedTaskId: json['completedTaskId'] as String?,
    completedStatus: json['completedStatus'] as String?,
    failureReason: json['failureReason'] as String?,
  );
}