convertToStoneTransactionModel static method

StoneTransactionModel convertToStoneTransactionModel(
  1. String message
)

Implementation

static StoneTransactionModel convertToStoneTransactionModel(String message) {
  if (message.contains('{')) {
    final map = json.decode(message);
    return StoneTransactionModel.fromMap(map);
  }
  return StoneTransactionModel.toError(message);
}