toJson method

  1. @override
Map<String, dynamic> toJson()
override

Implementation

@override
Map<String, dynamic> toJson() => <String, dynamic>{
      'collection_address': collectionAddress,
      'address': address,
      'owner_address': ownerAddress,
      'index': index,
      'name': name,
      'description': description,
      'image': image?.toJson(),
      'thumbnail': thumbnail?.toJson(),
      'content': content?.toJson(),
      'sticker': sticker?.toJson(),
      'attributes': attributes.map((item) => item.toJson()).toList(),
      'extra': extra?.toJson(),
      'gift': gift?.toJson(),
      '@type': constructor,
    };