deserializeError method

void deserializeError(
  1. Map<String, dynamic> input
)

Implementation

void deserializeError(Map<String, dynamic> input) {
  if (input.containsKey('error')) {
    Map<String, dynamic> error = input['error'] as Map<String, dynamic>;
    errorCode = error["code"] ?? null;
    errorMessage = error["message"] ?? null;
  }
}