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