decode static method
Implementation
static UIBlockEventDispatcher? decode(dynamic json) {
if (json == null) {
return null;
}
if (json is! Map<String, dynamic>) {
return null;
}
return UIBlockEventDispatcher(
name: StringDecoder.decode(json['name']),
destinationPageId: StringDecoder.decode(json['destinationPageId']),
deepLink: StringDecoder.decode(json['deepLink']),
payload: ListDecoder.decode(
json['payload'], (element) => Property.decode(element)),
requiredFields: ListDecoder.decode(
json['requiredFields'], (element) => StringDecoder.decode(element)),
httpRequest: ApiHttpRequest.decode(json['httpRequest']),
httpResponseAssertion:
ApiHttpResponseAssertion.decode(json['httpResponseAssertion']),
);
}