classNameNoPrefixSuffix property

String get classNameNoPrefixSuffix

Implementation

String get classNameNoPrefixSuffix {
  if (isRoot) {
    return rootClassName ?? 'Root';
  } else {
    var parentName = parent?.classNameNoPrefixSuffix;

    if (parentKey == null && type.isObject) {
      return '${parentName}Value'.upperCamel();
    } else {
      if (key == null) {
        return '$parentName'.upperCamel();
      } else {
        return '$parentName${key!.upperCamel()}'.upperCamel();
      }
    }
  }
}