toJson method

Map<String, Object?> toJson()

Implementation

Map<String, Object?> toJson() {
  var contentState = this.contentState;
  var lastUpdated = this.lastUpdated;

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