toYaml method
Serializes to the yaml section's map shape.
Implementation
Map<String, Object?> toYaml() {
return {
'name': name,
'apiType': apiType,
'baseUrl': baseUrl,
'keyName': ?keyName,
'authMethod': authMethod.name,
'authHeader': ?authHeader,
'connectTimeoutMs': ?connectTimeout?.inMilliseconds,
'streamIdleTimeoutMs': ?streamIdleTimeout?.inMilliseconds,
'modelId': modelId,
};
}