ApiGroupDeclaration constructor

ApiGroupDeclaration({
  1. required String name,
  2. required String baseUrl,
  3. Map<String, String>? headers,
  4. List<Endpoint>? endpoints,
})

Implementation

ApiGroupDeclaration({
  required this.name,
  required this.baseUrl,
  Map<String, String>? headers,
  List<Endpoint>? endpoints,
}) : headers = UnmodifiableMapView(
       Map<String, String>.from(headers ?? const {}),
     ),
     endpoints = List.unmodifiable(endpoints ?? const <Endpoint>[]);