ContainerStateWaiting.fromJson constructor

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

Creates a ContainerStateWaiting from JSON data.

Implementation

factory ContainerStateWaiting.fromJson(Map<String, dynamic> json) {
  final tempMessageJson = json['message'];
  final tempReasonJson = json['reason'];

  final String? tempMessage = tempMessageJson;
  final String? tempReason = tempReasonJson;

  return ContainerStateWaiting(
    message: tempMessage,
    reason: tempReason,
  );
}