Session.fromJson constructor
Create from JSON
Implementation
factory Session.fromJson(Map<String, dynamic> json) => Session(
id: json['id'] as String,
userId: json['userId'] as String,
createdAt: DateTime.parse(json['createdAt'] as String),
expiresAt: DateTime.parse(json['expiresAt'] as String),
data: Map<String, dynamic>.from(json['data'] as Map),
);