MethodInfo.fromJson constructor

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

Implementation

MethodInfo.fromJson(Map<String, dynamic> json) {
  name = json['name'];
  originDeclaration = json['originDeclaration'];
  comment = json['comment'];
  isAbstract = json['isAbstract'];
  if (json['args'] != null) {
    args = [];
    json['args'].forEach((v) {
      args.add(Property.fromJson(v));
    });
  }
  returnType = json['returnType'] != null
      ? Property.fromJson(json['returnType'])
      : Property();
}