diff --git a/packages/dart_mappable/lib/src/case_style.dart b/packages/dart_mappable/lib/src/case_style.dart index 02079b4..4a39529 100644 --- a/packages/dart_mappable/lib/src/case_style.dart +++ b/packages/dart_mappable/lib/src/case_style.dart @@ -89,6 +89,9 @@ class CaseStyle { /// Transforms to 'FIELDNAME' static const upperCase = CaseStyle(tail: TextTransform.upperCase); + + /// Transforms to 'FIELD_NAME' + static const upperSnakeCase = CaseStyle(tail: TextTransform.upperCase, separator: '_'); } extension CaseStyleTransform on CaseStyle? {