propertyName property

String? get propertyName

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

Implementation

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