RealtimeError.fromJson constructor

RealtimeError.fromJson(
  1. Map<String, Object?> json
)

Implementation

factory RealtimeError.fromJson(Map<String, Object?> json) => RealtimeError(
  severity: RealtimeErrorSeverity.fromWire(json['severity'] as String),
  subscriptionId: json['subscriptionId'] as String?,
  problem: Problem.fromJson((json['problem'] as Map).cast<String, Object?>()),
  retryAfterSeconds: (json['retryAfterSeconds'] as num?)?.toInt(),
);