fillMask method

Future<List> fillMask({
  1. required List inputs,
  2. required String model,
  3. dynamic options,
})

Implementation

Future<List<dynamic>> fillMask(
    {required List<dynamic> inputs,
    required String model,
    dynamic options}) async {
  Map<String, dynamic> queryParams = {
    'inputs': inputs,
  };
  if (options != null) {
    queryParams.addAll(options);
  }
  final response = await httpService.makeRequest(queryParams, model);
  handleHttpError(response);

  dynamic decodedResponse = json.decode(response.body);
  return decodedResponse;
}