Map<String, dynamic> toJson() { return { 'data': data.toJson(), 'status': status?.toJson(), 'type': type?.toJson(), }; }