SessionList.fromMap constructor

SessionList.fromMap(
  1. Map<String, dynamic> map
)

Implementation

factory SessionList.fromMap(Map<String, dynamic> map) {
  return SessionList(
    total: map['total'],
    sessions:
        List<Session>.from(map['sessions'].map((p) => Session.fromMap(p))),
  );
}