GenerateLinkRequest constructor

const GenerateLinkRequest({
  1. @Default('short') String type,
  2. @Default({}) Map<String, dynamic> metadata,
  3. @Default('') @JsonKey(name: 'page_url') String pageUrl,
  4. @Default(false) @JsonKey(name: 'is_force_create') bool isForceCreate,
})

Implementation

const factory GenerateLinkRequest(
    {@Default('short') String type,
    @Default({}) Map<String, dynamic> metadata,
    @Default('') @JsonKey(name: 'page_url') String pageUrl,
    @Default(false)
    @JsonKey(name: 'is_force_create')
    bool isForceCreate}) = _GenerateLinkRequest;