toJson method
转换为易读的JSON对象
Implementation
@override
Map<String, dynamic> toJson() {
final map = {
'toString': toString(),
'identifier': identifier,
'isExternal': isExternal,
};
if (externalStaticPropertyReader != null) map['externalStaticPropertyReader'] = true;
if (externalStaticPropertyWriter != null) map['externalStaticPropertyWriter'] = true;
if (externalStaticFunctionCaller != null) map['externalStaticFunctionCaller'] = true;
if (externalInstancePropertyReader != null) map['externalInstancePropertyReader'] = true;
if (externalInstancePropertyWriter != null) map['externalInstancePropertyWriter'] = true;
if (externalInstanceFunctionCaller != null) map['externalInstanceFunctionCaller'] = true;
if (internalStaticPropertyOperator != null) map['internalStaticPropertyOperator'] = internalStaticPropertyOperator.toString();
return map;
}