hasFromJson function

bool hasFromJson(
  1. InterfaceElement clazz
)

Implementation

bool hasFromJson(InterfaceElement clazz) {
  return clazz.constructors.any((f) => f.name == 'fromJson') ||
      clazz.methods.any((m) => m.isStatic && m.name == 'fromJson');
}