hasSerializer function

bool hasSerializer(
  1. ClassElement c
)

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');