APIPath constructor Null safety

APIPath(
  1. {String? summary,
  2. String? description,
  3. List<APIParameter?>? parameters,
  4. Map<String, APIOperation?>? operations}
)

Implementation

APIPath({
  this.summary,
  this.description,
  List<APIParameter?>? parameters,
  Map<String, APIOperation?>? operations,
}) {
  this.parameters = parameters ?? [];
  this.operations = operations ?? {};
}