InterestGroupAuctionEventOccurredEvent.fromJson constructor

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

Implementation

factory InterestGroupAuctionEventOccurredEvent.fromJson(
    Map<String, dynamic> json) {
  return InterestGroupAuctionEventOccurredEvent(
    eventTime: network.TimeSinceEpoch.fromJson(json['eventTime'] as num),
    type: InterestGroupAuctionEventType.fromJson(json['type'] as String),
    uniqueAuctionId:
        InterestGroupAuctionId.fromJson(json['uniqueAuctionId'] as String),
    parentAuctionId: json.containsKey('parentAuctionId')
        ? InterestGroupAuctionId.fromJson(json['parentAuctionId'] as String)
        : null,
    auctionConfig: json.containsKey('auctionConfig')
        ? json['auctionConfig'] as Map<String, dynamic>
        : null,
  );
}