toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.edition != null) {
    json[r'edition'] = this.edition;
  } else {
    json[r'edition'] = null;
  }
  if (this.framework != null) {
    json[r'framework'] = this.framework;
  } else {
    json[r'framework'] = null;
  }
  if (this.name != null) {
    json[r'name'] = this.name;
  } else {
    json[r'name'] = null;
  }
  if (this.publisher != null) {
    json[r'publisher'] = this.publisher;
  } else {
    json[r'publisher'] = null;
  }
  if (this.total != null) {
    json[r'total'] = this.total;
  } else {
    json[r'total'] = null;
  }
  if (this.unit != null) {
    json[r'unit'] = this.unit;
  } else {
    json[r'unit'] = null;
  }
  if (this.units != null) {
    json[r'units'] = this.units;
  } else {
    json[r'units'] = null;
  }
  return json;
}