toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
    json[r'id'] = this.id;
    json[r'object'] = this.object;
    json[r'bytes'] = this.bytes;
    json[r'created_at'] = this.createdAt;
    json[r'filename'] = this.filename;
    json[r'purpose'] = this.purpose;
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  if (this.statusDetails != null) {
    json[r'status_details'] = this.statusDetails;
  } else {
    json[r'status_details'] = null;
  }
  return json;
}