OriginTrial.fromJson constructor
Implementation
factory OriginTrial.fromJson(Map<String, dynamic> json) {
return OriginTrial(
trialName: json['trialName'] as String,
status: OriginTrialStatus.fromJson(json['status'] as String),
tokensWithStatus: (json['tokensWithStatus'] as List)
.map((e) =>
OriginTrialTokenWithStatus.fromJson(e as Map<String, dynamic>))
.toList(),
);
}