WebhookClientConfig.fromJson constructor
Creates a WebhookClientConfig from JSON data.
Implementation
factory WebhookClientConfig.fromJson(Map<String, dynamic> json) {
final tempCaBundleJson = json['caBundle'];
final tempServiceJson = json['service'];
final tempUrlJson = json['url'];
final String? tempCaBundle = tempCaBundleJson;
final ServiceReference? tempService = tempServiceJson != null
? ServiceReference.fromJson(tempServiceJson)
: null;
final String? tempUrl = tempUrlJson;
return WebhookClientConfig(
caBundle: tempCaBundle,
service: tempService,
url: tempUrl,
);
}