RADRetrieve.fromJson constructor
RADRetrieve.fromJson(
- Map<String, dynamic> json
)
Implementation
@override
factory RADRetrieve.fromJson(Map<String, dynamic> json) => RADRetrieve(
kind: RADType.fromString(json["kind"]),
script: List<int>.from(json["script"].map((x) => x)),
url: (json["url"] != "") ? json["url"] : null,
body: (json["body"] != null)
? List<int>.from(json["body"].map((x) => x))
: null,
headers: (json["headers"] != null)
? List<StringPair>.from((json["headers"] as Map<String, String>)
.entries
.map((e) => StringPair(left: e.key, right: e.value)))
: null,
);