Sessions.fromJson constructor

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

Parse from a json

Implementation

factory Sessions.fromJson(Map<String, dynamic> json) => Sessions(
  sessions: List<Session>.from((json['sessions'] ?? []).map((item) => Session.fromJson(item)).toList()),
  inactiveSessionTtlDays: json['inactive_session_ttl_days'],
  extra: json['@extra'],
  clientId: json['@client_id'],
);