TonNftAttribute constructor

const TonNftAttribute({
  1. @JsonKey.new(name: 'trait_type') required String traitType,
  2. @JsonKey.new(name: 'value') required String value,
})

Creates a TonNftAttribute.

Implementation

const factory TonNftAttribute({
  /// Name of the trait.
  @JsonKey(name: 'trait_type') required String traitType,

  /// Value of the trait.
  @JsonKey(name: 'value') required String value,
}) = _TonNftAttribute;