class RideUpdateRequest { final int? rideId; final String? type; final String? message; final String? riderusername; final String? stoplocation; RideUpdateRequest({ this.rideId, this.type, this.message, this.riderusername, this.stoplocation, }); factory RideUpdateRequest.fromJson(Map json) { return RideUpdateRequest( rideId: json['rideId'] as int?, type: json['type'] as String?, message: json['message'] as String?, riderusername: json['riderusername'] as String?, stoplocation: json['stoplocation'] as String?, ); } Map toJson() { return { 'rideId': rideId, 'type': type, 'message': message, 'riderusername': riderusername, 'stoplocation': stoplocation, }; } @override String toString() { return 'RideUpdateRequest{' 'rideId: $rideId, ' 'type: $type, ' 'message: $message, ' 'riderusername: $riderusername, ' 'stoplocation: $stoplocation' '}'; } }