toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.preMoneyValuation != null) {
    json[r'preMoneyValuation'] = this.preMoneyValuation;
  } else {
    json[r'preMoneyValuation'] = null;
  }
  if (this.pricePerShare != null) {
    json[r'pricePerShare'] = this.pricePerShare;
  } else {
    json[r'pricePerShare'] = null;
  }
  if (this.roundType != null) {
    json[r'roundType'] = this.roundType;
  } else {
    json[r'roundType'] = null;
  }
  if (this.shareClassId != null) {
    json[r'shareClassId'] = this.shareClassId;
  } else {
    json[r'shareClassId'] = null;
  }
  if (this.targetAmount != null) {
    json[r'targetAmount'] = this.targetAmount;
  } else {
    json[r'targetAmount'] = null;
  }
  return json;
}