GetBuiltinIntentResponse.fromJson constructor
GetBuiltinIntentResponse.fromJson(
- Map<String, dynamic> json
)
Implementation
factory GetBuiltinIntentResponse.fromJson(Map<String, dynamic> json) {
return GetBuiltinIntentResponse(
signature: json['signature'] as String?,
slots: (json['slots'] as List?)
?.whereNotNull()
.map((e) => BuiltinIntentSlot.fromJson(e as Map<String, dynamic>))
.toList(),
supportedLocales: (json['supportedLocales'] as List?)
?.whereNotNull()
.map((e) => (e as String).toLocale())
.toList(),
);
}