intent static method

Map<String, dynamic> intent({
  1. required String name,
  2. Map<String, dynamic>? inputs,
  3. Map<String, dynamic>? data,
})

Implementation

static Map<String, dynamic> intent({
  required String name,
  Map<String, dynamic>? inputs,
  Map<String, dynamic>? data,
}) {
  return {
    '\$kind': '\$Intent',
    '\$Intent': {
      'name': name,
      'inputs': inputs?.map((key, value) => MapEntry(
        key,
        value
      )) ?? {},
      'data': data ?? {},
    },
  };
}