NoPendingFrame.deserialize constructor

NoPendingFrame.deserialize(
  1. Map<String, String> json
)

Factory constructor to parse a NoPendingFrame instance from the given JSON map.

Implementation

factory NoPendingFrame.deserialize(Map<String, String> json) {
  if (json['conditionName'] != 'NoPendingFrameCondition') {
    throw SerializationException('Error occurred during deserializing the NoPendingFrameCondition JSON string: $json');
  }
  return const NoPendingFrame();
}