NoPendingPlatformMessages.deserialize constructor Null safety

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

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

The json argument must not be null.

Implementation

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