NatureChatInitResponse.fromJson constructor
NatureChatInitResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory NatureChatInitResponse.fromJson(Map<String, dynamic> json) {
return NatureChatInitResponse(
canAsk: json['canAsk'] as bool?,
initialQuestions: (json['initialQuestions'] as List?)?.map((e) => e.toString()).toList(),
birdMembershipType: json['birdMembershipType'] as String?,
isSharedSession: json['isSharedSession'] as bool?,
result: json['result'] as int?,
msg: json['msg'] as String?,
);
}