toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  return {
    'locationSharingFor': json.encode(locationSharingFor),
    'lat': lat.toString(),
    'long': long.toString(),
    'lastUpdatedAt': lastUpdatedAt.toUtc().toString(),
    'sender': sender,
    'receiver': receiver
  };
}