toMap method
Converts the LiveActivity instance to a Map for sending back to native or JSON serialization
Implementation
Map<String, dynamic> toMap() {
final map = <String, dynamic>{};
if (id != null) map[_MAP_ID] = id;
if (applicationId != null) map[_MAP_APPLICATION_ID] = applicationId;
if (liveActivityExternalId != null)
map[_MAP_LIVE_ACTIVITY_EXTERNAL_ID] = liveActivityExternalId;
if (status != null) map[_MAP_STATUS] = status;
if (createdAt != null) map[_MAP_CREATED_AT] = createdAt;
if (updatedAt != null) map[_MAP_UPDATED_AT] = updatedAt;
if (iosChannelId != null) map[_MAP_IOS_CHANNEL_ID] = iosChannelId;
if (androidTopicId != null) map[_MAP_ANDROID_TOPIC_ID] = androidTopicId;
return map;
}