ChatVariableListResult.fromJson constructor

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

Implementation

factory ChatVariableListResult.fromJson(Map<String, dynamic> json) {
  return ChatVariableListResult(
    variables:
        (json['variables'] as List?)
            ?.map((e) => ChatVariable.fromJson(e as Map<String, dynamic>))
            .toList() ??
        [],
    activeQuestId: json['activeQuestId'] as String?,
  );
}