RemoteA2aConfig.fromJson constructor
RemoteA2aConfig.fromJson(
- Map json_
Implementation
RemoteA2aConfig.fromJson(core.Map json_)
: this(
agentCard: json_.containsKey('agentCard')
? AgentCard.fromJson(
json_['agentCard'] as core.Map<core.String, core.dynamic>,
)
: null,
agentRegistry: json_['agentRegistry'] as core.String?,
apiAuthentication: json_.containsKey('apiAuthentication')
? ApiAuthentication.fromJson(
json_['apiAuthentication']
as core.Map<core.String, core.dynamic>,
)
: null,
contextId: json_['contextId'] as core.String?,
inputVariableMapping:
(json_['inputVariableMapping']
as core.Map<core.String, core.dynamic>?)
?.map((key, value) => core.MapEntry(key, value as core.String)),
outputVariableMapping:
(json_['outputVariableMapping']
as core.Map<core.String, core.dynamic>?)
?.map((key, value) => core.MapEntry(key, value as core.String)),
streamingEnabled: json_['streamingEnabled'] as core.bool?,
);