RealtimeError.fromJson constructor

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

Creates a RealtimeError from JSON.

Implementation

factory RealtimeError.fromJson(Map<String, dynamic> json) {
  return RealtimeError(
    type: json['type'] as String,
    code: json['code'] as String?,
    message: json['message'] as String,
    param: json['param'] as String?,
    eventId: json['event_id'] as String?,
  );
}