toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.capital != null) {
    json[r'capital'] = this.capital;
  } else {
    json[r'capital'] = null;
  }
  if (this.conversionCap != null) {
    json[r'conversionCap'] = this.conversionCap;
  } else {
    json[r'conversionCap'] = null;
  }
  if (this.discountRate != null) {
    json[r'discountRate'] = this.discountRate;
  } else {
    json[r'discountRate'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
  if (this.interestRate != null) {
    json[r'interestRate'] = this.interestRate;
  } else {
    json[r'interestRate'] = null;
  }
  if (this.issueDate != null) {
    json[r'issueDate'] = this.issueDate;
  } else {
    json[r'issueDate'] = null;
  }
  if (this.publicId != null) {
    json[r'publicId'] = this.publicId;
  } else {
    json[r'publicId'] = null;
  }
  if (this.stakeholderId != null) {
    json[r'stakeholderId'] = this.stakeholderId;
  } else {
    json[r'stakeholderId'] = null;
  }
  if (this.stakeholderName != null) {
    json[r'stakeholderName'] = this.stakeholderName;
  } else {
    json[r'stakeholderName'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.type != null) {
    json[r'type'] = this.type;
  } else {
    json[r'type'] = null;
  }
  return json;
}