FunctionCall.fromJson constructor
FunctionCall.fromJson(
- Object? j
Implementation
factory FunctionCall.fromJson(Object? j) {
final json = j as Map<String, Object?>;
return FunctionCall(
id: switch (json['id']) {
null => '',
Object $1 => decodeString($1),
},
name: switch (json['name']) {
null => '',
Object $1 => decodeString($1),
},
args: switch (json['args']) {
null => null,
Object $1 => Struct.fromJson($1),
},
);
}