canParse static method

bool canParse(
  1. Object? obj
)

Implementation

static bool canParse(Object? obj) {
  if (obj is! Map<String, dynamic>) {
    return false;
  }
  if (obj['attributeName'] is! String) {
    return false;
  }
  if (obj['format'] is! String?) {
    return false;
  }
  if (obj['label'] is! String) {
    return false;
  }
  if (obj['type'] is! String?) {
    return false;
  }
  if (obj['width'] is! int?) {
    return false;
  }
  return true;
}