FlusmicResponse<T> class

FlusmicResponse model

Handle all the data fetched from Prismic.io

Annotations
  • @Freezed(genericArgumentFactories: true)

Constructors

FlusmicResponse({@JsonKey(name: 'results_per_page') required int resultsPerPage, @JsonKey(name: 'results_size') required int resultsSize, @JsonKey(name: 'total_pages') required int totalPages, @JsonKey(name: 'total_results_size') required int totalResultsSize, required List<T> results, required String license, required String version, required int page, @JsonKey(name: 'next_page') String? nextPage, @JsonKey(name: 'prev_page') String? prevPage})
Deafult factory constructor for FlusmicResponse
factory
FlusmicResponse.fromJson(Map<String, dynamic> json, T fromJsonT(Object? json))
Creates a FlusmicResponse object from json
factory

Properties

copyWith → $FlusmicResponseCopyWith<T, FlusmicResponse<T>>
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
license String
no setterinherited
nextPage String?
no setterinherited
page int
no setterinherited
prevPage String?
no setterinherited
results List<T>
no setterinherited
resultsPerPage int
no setterinherited
resultsSize int
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
totalPages int
no setterinherited
totalResultsSize int
no setterinherited
version String
no setterinherited

Methods

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

Operators

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