encode method
Implementation
Map<String, dynamic> encode() {
return {
'__typename': 'UIBlockEventDispatcher',
'name': name,
'destinationPageId': destinationPageId,
'deepLink': deepLink,
'payload': payload?.map((e) => e.encode()).toList(growable: false),
'requiredFields': requiredFields?.map((e) => e).toList(growable: false),
'httpRequest': httpRequest?.encode(),
'httpResponseAssertion': httpResponseAssertion?.encode(),
};
}