HttpAction.fromJson constructor
Implementation
factory HttpAction.fromJson(Map<String, dynamic> json) {
return HttpAction(
url: json['url'] as String,
auth: json['auth'] != null
? HttpAuthorization.fromJson(json['auth'] as Map<String, dynamic>)
: null,
confirmationUrl: json['confirmationUrl'] as String?,
headers: (json['headers'] as List?)
?.whereNotNull()
.map((e) => HttpActionHeader.fromJson(e as Map<String, dynamic>))
.toList(),
);
}