convertToStoneTechResponse static method

StoneTechResponse convertToStoneTechResponse(
  1. String message
)

Implementation

static StoneTechResponse convertToStoneTechResponse(String message) {
  if (message.contains('{')) {
    final map = json.decode(message);
    return StoneTechResponse.fromMap(map);
  }
  return StoneTechResponse(message: message);
}