buildPath method

String buildPath(
  1. Map<String, String?> argsJson
)

Implementation

String buildPath(Map<String, String?> argsJson) {
  String path = pathFormat;

  while (_pathArgRegex.hasMatch(path)) {
    final argName = _pathArgRegex.firstMatch(path)!.group(1)!;
    path = path.replaceFirst(_pathArgRegex, argsJson[argName]!);
  }

  return path;
}