toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final Map<String, dynamic> data = new Map<String, dynamic>();
  // data['typeInt'] = this.typeInt;
  data['type'] = this.type;
  data['name'] = this.name;
  data['defaultValue1'] = this.defaultValue1;
  data['originDeclaration'] = this.originDeclaration;
  data['comment'] = this.comment;
  data['isStatic'] = this.isStatic;
  data['isConst'] = this.isConst;
  data['isFinal'] = this.isFinal;
  data['isPrivate'] = this.isPrivate;
  data['canBeNull'] = this.canBeNull;
  data['subType'] = this.subType.map((v) => v.toJson()).toList();
  return data;
}