ServiceWorkerErrorMessage.fromJson constructor

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

Implementation

factory ServiceWorkerErrorMessage.fromJson(Map<String, dynamic> json) {
  return ServiceWorkerErrorMessage(
    errorMessage: json['errorMessage'] as String,
    registrationId: RegistrationID.fromJson(json['registrationId'] as String),
    versionId: json['versionId'] as String,
    sourceURL: json['sourceURL'] as String,
    lineNumber: json['lineNumber'] as int,
    columnNumber: json['columnNumber'] as int,
  );
}