toJSON method

Map<String, dynamic> toJSON()

Implementation

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