hasSerializer function
Implementation
bool hasSerializer(ClassElement c) => c.fields.any((field) =>
field.isStatic &&
field.name == 'serializer' &&
field.type.element?.name == 'Serializer' &&
field.type.element?.source?.uri.toString() ==
'package:built_value/serializer.dart');