appendMapper method

void appendMapper(
  1. String pathPage,
  2. String apiName,
  3. dynamic response
)

Implementation

void appendMapper(
  String pathPage,
  String apiName,
  dynamic response,
) {
  String extensionMapper = getExtensionMapper(
    apiName.pascalCase,
    '',
    '',
    response,
    null,
    false,
    true,
  );

  final path = pathPage;
  DirectoryHelper.createDir(path);
  join(path, 'mapper.dart').append(extensionMapper);
}