BuiltinIntentMetadata.fromJson constructor

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

Implementation

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