toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.bytes != null) {
    json[r'bytes'] = this.bytes;
  } else {
    json[r'bytes'] = null;
  }
  if (this.commit != null) {
    json[r'commit'] = this.commit;
  } else {
    json[r'commit'] = null;
  }
  if (this.files != null) {
    json[r'files'] = this.files;
  } else {
    json[r'files'] = null;
  }
  if (this.id != null) {
    json[r'id'] = this.id;
  } else {
    json[r'id'] = null;
  }
    json[r'keys'] = this.keys;
  if (this.liveUrl != null) {
    json[r'liveUrl'] = this.liveUrl;
  } else {
    json[r'liveUrl'] = null;
  }
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  if (this.slug != null) {
    json[r'slug'] = this.slug;
  } else {
    json[r'slug'] = null;
  }
  if (this.status != null) {
    json[r'status'] = this.status;
  } else {
    json[r'status'] = null;
  }
  return json;
}