Session.fromJson constructor
Read this payload from a decoded JSON object.
Implementation
factory Session.fromJson(Map<String, dynamic> json) => Session(
id: json['id'] as String,
subject: json['subject'] as String,
issuedAt: json['issuedAt'] as String,
expiresAt: json['expiresAt'] as String,
amr: json['amr'] == null
? null
: (json['amr'] as List<dynamic>).map((e) => e as String).toList(),
acr: json['acr'] as String?,
sessionKey: json['sessionKey'] as String?,
actor: json['actor'] as String?,
absoluteExpiresAt: json['absoluteExpiresAt'] as String?,
ext: json['ext'] as Map<String, dynamic>?,
);