toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final captureTime = this.captureTime;
  final schemaVersion = this.schemaVersion;
  final typeName = this.typeName;
  final content = this.content;
  final contentHash = this.contentHash;
  final context = this.context;
  return {
    'CaptureTime': captureTime,
    'SchemaVersion': schemaVersion,
    'TypeName': typeName,
    if (content != null) 'Content': content,
    if (contentHash != null) 'ContentHash': contentHash,
    if (context != null) 'Context': context,
  };
}