eventMessageFromJson function

ChatwootEventMessage? eventMessageFromJson(
  1. dynamic value
)

Implementation

ChatwootEventMessage? eventMessageFromJson(value) {
  if (value == null) {
    return null;
  } else if (value is num) {
    return ChatwootEventMessage();
  } else if (value is String) {
    return ChatwootEventMessage();
  } else {
    return ChatwootEventMessage.fromJson(value as Map<String, dynamic>);
  }
}