NoPendingPlatformMessages.deserialize constructor

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

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

Implementation

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