ChatResponseModel class

Annotations
  • @freezed

Constructors

ChatResponseModel({required String id, String? object, int? created, required UsageModel usage, required List<ChoiceModel> choices})
const
factory
ChatResponseModel.fromJson(Map<String, dynamic> json)
factory
ChatResponseModel.mockData()
factory

Properties

choices List<ChoiceModel>
no setterinherited
copyWith → $ChatResponseModelCopyWith<ChatResponseModel>
no setterinherited
created int?
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
id String
no setterinherited
object String?
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
usage UsageModel
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited