IntentCallInvocationEnvelope.fromJson constructor
Implementation
factory IntentCallInvocationEnvelope.fromJson(
final Map<String, Object?> json,
) {
final args = json['arguments'];
return IntentCallInvocationEnvelope(
id: '${json['id'] ?? ''}',
qualifiedName: '${json['qualifiedName'] ?? ''}',
arguments: args is Map
? Map<String, Object?>.from(args)
: const <String, Object?>{},
source: '${json['source'] ?? ''}',
createdAt: DateTime.tryParse('${json['createdAt'] ?? ''}'),
);
}