handleServerError method

void handleServerError(
  1. Map<String, dynamic> json
)

Handles the server error

Implementation

void handleServerError(Map<String, dynamic> json) {
  final error = json[JsonConstants.error];
  final errorCode = error['code'];
  final errorMessage = error['message'];
  _logger.severe('Server error code $errorCode: $errorMessage');
}