Error.fromJson constructor

Error.fromJson(
  1. Object? json
)

Implementation

factory Error.fromJson(Object? json) {
  final map = (json as Map).cast<String, Object?>();
  return Error(error: ApiErrors.fromJson(map['error']));
}