propertyName property

String? propertyName

Name of the property of the current JsonSchema within its parent.

Implementation

String? get propertyName {
  final pathUri = Uri.parse(path!);
  final pathFragments = pathUri.fragment.split('/');
  return pathFragments.length > 2 ? pathFragments.last : null;
}