TrustTokenParams.fromJson constructor

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

Implementation

factory TrustTokenParams.fromJson(Map<String, dynamic> json) {
  return TrustTokenParams(
    operation: TrustTokenOperationType.fromJson(json['operation'] as String),
    refreshPolicy: TrustTokenParamsRefreshPolicy.fromJson(
        json['refreshPolicy'] as String),
    issuers: json.containsKey('issuers')
        ? (json['issuers'] as List).map((e) => e as String).toList()
        : null,
  );
}