toJSON method
Implementation
Map<String, dynamic> toJSON()=>{
'from': from,
'to': to,
'createdTime': createdTime,
'expiresAt': expiresAt,
'newOffer': newOffer?.toJSON(),
'message': message,
'unread': unread,
'eventId': eventId,
'collectiveId': collectiveId,
'instrument': instrument?.toJSON(),
'percentageCoverage': percentageCoverage,
'distanceKm': distanceKm,
'requestDecision': requestDecision.name,
'positionRequestedId': positionRequestedId,
'gameRequestType': gameRequestType?.name,
};