toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final type = this.type;
  final shardId = this.shardId;
  final timestamp = this.timestamp;
  return {
    'Type': type.toValue(),
    if (shardId != null) 'ShardId': shardId,
    if (timestamp != null) 'Timestamp': unixTimestampToJson(timestamp),
  };
}