fromJson static method

TonNftAttribute? fromJson(
  1. Map<String, dynamic>? json
)

Implementation

static TonNftAttribute? fromJson(Map<String, dynamic>? json) {
  if (json == null) {
    return null;
  }

  return TonNftAttribute(
    traitType: (json['trait_type'] as String?) ?? '',
    value: (json['value'] as String?) ?? '',
  );
}