License constructor

const License({
  1. required String name,
  2. String? identifier,
  3. String? url,
})

Implementation

const factory License({
  /// The license name used for the API.
  required String name,

  /// An [SPDX](https://spdx.org/spdx-specification-21-web-version#h.jxpfx0ykyb60) license expression for the API.
  /// The identifier field is mutually exclusive of the url field.
  String? identifier,

  /// A URL to the license used for the API. This must be in the form of a URL.
  /// The [url] field is mutually exclusive of the [identifier] field.
  String? url,
}) = _License;