toJson method

Map<String, dynamic> toJson()

Implementation

Map<String, dynamic> toJson() {
  final json = <String, dynamic>{};
  json[r'isExpired'] = isExpired;
  json[r'userId'] = userId;
  json[r'role'] = role;
  json[r'expirationDate'] = expirationDate!.toIso8601String();
  return json;
}