EndpointService class

Service for handling endpoint generation logic.

This service implements the core business logic for generating endpoint files, including deleting old endpoints, generating URI creation methods, and writing the output to files. It automatically processes all json2dart.yaml files found in the json2dart directory.

Constructors

EndpointService()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteOldEndpoints(String pathDir) → void
Deletes old endpoint files from the specified directory.
generateEndpoints(EndpointConfig config) Future<void>
Generates endpoint methods and writes them to the output file.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited