Period.fromJson constructor

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

Implementation

factory Period.fromJson(Map<String, dynamic> json) {
  return Period(
      slotNum: json['slotNum'],
      fromBlock: json['fromBlock'],
      toBlock: json['toBlock'],
      fromTimestamp: json['fromTimestamp'],
      toTimestamp: json['toTimestamp']);
}