toJson method
Implementation
Map<String, Object?> toJson() {
return {
...Map.from(_json)..remove('usage'),
'url': url.toString(),
if (body != null) 'body': body,
if (info != null) 'info': info,
if (usage != null)
'usage': imagePackUsageToJson(usage, _json.tryGetList<String>('usage')),
};
}