whenOrNull<TResult extends Object?> method
- @optionalTypeArgs
- TResult? fileCitation()?,
- TResult? filePath()?,
inherited
Implementation
@optionalTypeArgs
TResult? whenOrNull<TResult extends Object?>({
TResult? Function(
int index,
String type,
@JsonKey(includeIfNull: false) String? text,
@JsonKey(name: 'file_citation', includeIfNull: false)
MessageDeltaContentTextAnnotationsFileCitation? fileCitation,
@JsonKey(name: 'start_index', includeIfNull: false) int? startIndex,
@JsonKey(name: 'end_index', includeIfNull: false) int? endIndex)?
fileCitation,
TResult? Function(
int index,
String type,
@JsonKey(includeIfNull: false) String? text,
@JsonKey(name: 'file_path', includeIfNull: false)
MessageDeltaContentTextAnnotationsFilePathObjectFilePath? filePath,
@JsonKey(name: 'start_index', includeIfNull: false) int? startIndex,
@JsonKey(name: 'end_index', includeIfNull: false) int? endIndex)?
filePath,
}) =>
throw _privateConstructorUsedError;