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 (title != null) map[_MAP_TITLE] = title;
if (status != null) map[_MAP_STATUS] = status;
if (createdAt != null) map[_MAP_CREATED_AT] = createdAt;
if (updatedAt != null) map[_MAP_UPDATED_AT] = updatedAt;
if (details != null) map[_MAP_DETAILS] = details;
return map;
}