toJson method

  1. @override
Map<String, Object?> toJson()

Implementation

@override
Map<String, Object?> toJson() => {
      if (id != null) "id": encodeValue(id),
      if (tokenType != null) "token_type": encodeValue(tokenType),
      if (issuedAt != null) "issued_at": encodeValue(issuedAt),
      if (token != null) "token": encodeValue(token),
    };