RealtimeTranslationError.fromJson constructor

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

Creates from JSON.

Implementation

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