Returns a JSON representation of this.
@override Map<String, Object?> toJson() => { 'runtimeType': 'ModuleExport', 'name': name, 'type': type.toJson(), };