ActionTextOutput.fromJson constructor

ActionTextOutput.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ActionTextOutput.fromJson(Map<String, dynamic> json) => ActionTextOutput(
    userId: (json['UserId'] as String?) ?? '',
    text: (json['Text'] as String?) ?? '',
    generateChatMessage: (json['GenerateChatMessage'] as bool?) ?? false,
    createdAt: (json['CreatedAt'] as String?) ?? '',
    preciseCreatedAt: (json['PreciseCreatedAt'] as num?)?.toInt() ?? 0,
);