fromElement static method
Implementation
static MetaToJson? fromElement(Element? element) {
if (element == null) {
return null;
}
if (element case MethodElement(name: 'toJson')) {
return MetaToJson(returnType: MetaType.fromType(element.returnType));
}
return fromElement(element.toJsonElement);
}