ErrorDetails.fromJson constructor

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

Implementation

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