FileLink class final

FileLink

To share the contents of a `File` object with non-Stripe users, you can create a `FileLink`. `FileLink`s contain a URL that you can use to retrieve the contents of the file without authentication.

Implemented types

Constructors

FileLink({required DateTime created, required bool expired, DateTime? expiresAt, required FileOrId file, required String id, required bool livemode, required Map<String, String> metadata, String? url})
FileLink
const
FileLink.fromJson(Object? json)
factory

Properties

created → DateTime
final
expired → bool
final
expiresAt → DateTime?
final
file → FileOrId
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
final
livemode → bool
final
metadata → Map<String, String>
final
object → String
The resource's type.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
url → String?
final

Methods

encodeWith<V>(Encoder<V> encoder) → V
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() → Map<String, Object?>
override
toString() → String
A string representation of this object.
override

Operators

operator ==(Object other) → bool
The equality operator.
inherited

Static Methods

encode<V>(FileLink instance, Encoder<V> encoder) → V