OriginTrial.fromJson constructor

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

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(),
  );
}