toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var createdBy = this.createdBy;
  var createdDate = this.createdDate;
  var friendlyCreatedDate = this.friendlyCreatedDate;

  final json = <String, Object?>{};
  if (createdBy != null) {
    json[r'createdBy'] = createdBy.toJson();
  }
  if (createdDate != null) {
    json[r'createdDate'] = createdDate.toIso8601String();
  }
  if (friendlyCreatedDate != null) {
    json[r'friendlyCreatedDate'] = friendlyCreatedDate;
  }
  return json;
}