MeteorError.parse constructor

MeteorError.parse(
  1. Map<String, dynamic> object
)

Implementation

MeteorError.parse(Map<String, dynamic> object) {
  try {
    details = object['details']?.toString();
    error = object['error'] is String
        ? int.tryParse(object['error']) ?? object['error']
        : object['error'];
    errorType = object['errorType']?.toString();
    isClientSafe = object['isClientSafe'] == true;
    message = object['message']?.toString();
    reason = object['reason']?.toString();
    stack = object['stack']?.toString();
  } catch (_) {}
}