GroqError.fromJson constructor

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

Implementation

factory GroqError.fromJson(Map<String, dynamic> json) => GroqError(
      message: json['error']['message'],
      type: json['error']['type'],
    );