toJson method
Converts the BundleRunResponse instance into a JSON-compatible map.
Includes the meta_data field only if it is not null to keep
the resulting map clean.
Implementation
Map<String, dynamic> toJson() => {
'response': response?.toJson(),
if (metaData != null) 'meta_data': metaData,
};