InterestGroupAccessedEvent.fromJson constructor
InterestGroupAccessedEvent.fromJson(
- Map<String, dynamic> json
)
Implementation
factory InterestGroupAccessedEvent.fromJson(Map<String, dynamic> json) {
return InterestGroupAccessedEvent(
accessTime: network.TimeSinceEpoch.fromJson(json['accessTime'] as num),
type: InterestGroupAccessType.fromJson(json['type'] as String),
ownerOrigin: json['ownerOrigin'] as String,
name: json['name'] as String,
componentSellerOrigin: json.containsKey('componentSellerOrigin')
? json['componentSellerOrigin'] as String
: null,
bid: json.containsKey('bid') ? json['bid'] as num : null,
bidCurrency: json.containsKey('bidCurrency')
? json['bidCurrency'] as String
: null,
uniqueAuctionId: json.containsKey('uniqueAuctionId')
? InterestGroupAuctionId.fromJson(json['uniqueAuctionId'] as String)
: null,
);
}