AuthInfo.fromJson constructor

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

Implementation

factory AuthInfo.fromJson(Map<String, dynamic> json) {
  return AuthInfo(
    resources: (json['resources'] as List)
        .whereNotNull()
        .map((e) => e as String)
        .toList(),
    actionType: (json['actionType'] as String?)?.toActionType(),
  );
}