toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final name = this.name;
  final comment = this.comment;
  final parameters = this.parameters;
  final type = this.type;
  return {
    'Name': name,
    if (comment != null) 'Comment': comment,
    if (parameters != null) 'Parameters': parameters,
    if (type != null) 'Type': type,
  };
}