hasJsonNameAlias property

bool get hasJsonNameAlias

Returns true if any field or constructor parameter uses a JsonFieldAlias.

Implementation

bool get hasJsonNameAlias =>
    _hasJsonNameAlias ??= fieldsWithJsonNameAlias.isNotEmpty ||
        allConstructors().any((c) => c.hasJsonNameAlias);