toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() => {
      'senderId': senderId,
      'msg': msg,
      'dateTime': dateTime.toString(),
    };