TrustedWebActivityIssueDetails.fromJson constructor

TrustedWebActivityIssueDetails.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory TrustedWebActivityIssueDetails.fromJson(Map<String, dynamic> json) {
  return TrustedWebActivityIssueDetails(
    url: json['url'] as String,
    violationType: TwaQualityEnforcementViolationType.fromJson(
        json['violationType'] as String),
    httpStatusCode: json.containsKey('httpStatusCode')
        ? json['httpStatusCode'] as int
        : null,
    packageName: json.containsKey('packageName')
        ? json['packageName'] as String
        : null,
    signature:
        json.containsKey('signature') ? json['signature'] as String : null,
  );
}