FailedRequestDetails.fromJSON constructor
FailedRequestDetails.fromJSON(
- Map<String, dynamic> data
)
Implementation
factory FailedRequestDetails.fromJSON(Map<String, dynamic> data) {
return FailedRequestDetails(
(data["entityId"] as String),
(data["delegateId"] as String),
(data["updatedForMigration"] as bool),
(data["shouldRetry"] as bool),
code: (data["code"] as int?),
reason: (data["reason"] as String?),
request: data["request"] == null ? null : DelegateShareOptions.fromJSON(data["request"]),
);
}