Property.fromJson constructor

Property.fromJson(
  1. Map<String, dynamic> json
)

Implementation

Property.fromJson(Map<String, dynamic> json) {
  // typeInt = json['typeInt'];
  type = json['type'];
  name = json['name'];
  defaultValue1 = json['defaultValue1'];
  originDeclaration = json['originDeclaration'];
  comment = json['comment'];
  isStatic = json['isStatic'];
  isConst = json['isConst'];
  isFinal = json['isFinal'];
  isPrivate = json['isPrivate'];
  canBeNull = json['canBeNull'];
  if (json['subType'] != null) {
    subType = [];
    json['subType'].forEach((v) {
      subType.add(new Property.fromJson(v));
    });
  }
}