isJsonDataType function

bool isJsonDataType(
  1. dynamic object
)

Implementation

bool isJsonDataType(dynamic object) {
  if (object == null ||
      object is num ||
      object is bool ||
      object is String ||
      object is HTStruct ||
      object is Iterable ||
      object is Map<String, dynamic>) {
    return true;
  } else {
    return false;
  }
}