License constructor

  1. @JsonSerializable.new(includeIfNull: false)
const License({
  1. required String name,
  2. String? identifier,
  3. String? url,
})

Creates a License object.

Implementation

@JsonSerializable(includeIfNull: false)
const factory License({
  /// The name of the license.
  required String name,

  /// An SPDX license expression for the API.
  /// The identifier field is mutually exclusive of the url field.
  String? identifier,

  /// A URL to the license information.
  String? url,
}) = _License;