parseAsType property

String parseAsType

Implementation

String get parseAsType {
  var parseAs = '';

  if (defaultValue != null) {
    if (['String', 'String?'].contains(dataType)) {
      parseAs = 'as String';
    } else if (['bool', 'bool?'].contains(dataType)) {
      parseAs = 'as bool';
    }
  }

  return parseAs;
}