NavigatorUserAgentIssueDetails.fromJson constructor

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

Implementation

factory NavigatorUserAgentIssueDetails.fromJson(Map<String, dynamic> json) {
  return NavigatorUserAgentIssueDetails(
    url: json['url'] as String,
    location: json.containsKey('location')
        ? SourceCodeLocation.fromJson(
            json['location'] as Map<String, dynamic>)
        : null,
  );
}