toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  if (this.authorEmail != null) {
    json[r'authorEmail'] = this.authorEmail;
  } else {
    json[r'authorEmail'] = null;
  }
  if (this.authorName != null) {
    json[r'authorName'] = this.authorName;
  } else {
    json[r'authorName'] = null;
  }
  if (this.date != null) {
    json[r'date'] = this.date;
  } else {
    json[r'date'] = null;
  }
  if (this.message != null) {
    json[r'message'] = this.message;
  } else {
    json[r'message'] = null;
  }
  if (this.sha != null) {
    json[r'sha'] = this.sha;
  } else {
    json[r'sha'] = null;
  }
  if (this.shortSha != null) {
    json[r'shortSha'] = this.shortSha;
  } else {
    json[r'shortSha'] = null;
  }
  return json;
}