toMap method
Conversion InApp to Map
Implementation
Map toMap() {
Map map = Map();
if (inAppId != null) map[_INAPPID] = inAppId;
if (lastVersionId != null) map[_LAST_VERSION_ID] = lastVersionId;
if (showOnce != null) map[_SHOW_ONCE] = showOnce;
if (version != null) map[_VERSION] = version;
if (cacheTtl != null) map[_CACHE_TTL] = cacheTtl;
if (customData != null) map[_CUSTOM_DATA] = customData;
if (creationDate != null) map[_CREATION_DATE] = creationDate;
if (expiredDate != null) map[_EXPIRED_DATE] = expiredDate;
if (properties != null) map[_PROPERTIES] = properties!.toMap();
if (schema != null) map[_SCHEMA] = schema!.toMap();
return map;
}