JsonFixtureDefinition<Model> class abstract

It defines a fixture to generate the model and the associated JSON.

Inheritance

Constructors

JsonFixtureDefinition(FixtureDefinition<Model> fixtureDefinition, JsonFixtureDefinitionBuilder<Model> jsonDefinition)

Properties

fixtureDefinition → FixtureDefinition<Model>
final
hashCode → int
The hash code for this object.
no setterinherited
jsonDefinition → JsonFixtureDefinitionBuilder<Model>
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

makeJsonArray(int number, {bool growableList = false}) → List<Map<String, dynamic>>
Create a JSON Array of models.
override
makeJsonArrayFromMany(List<Model> objects, {bool growableList = false}) → List<Map<String, dynamic>>
Create a JSON Array of a sequence of models.
override
makeJsonObject() → Map<String, dynamic>
Create a JSON Object.
override
makeJsonObjectFromSingle(Model object) → Map<String, dynamic>
Create a JSON Object from a model.
override
makeMany(int number, {bool growableList = false}) → List<Model>
Create a list of models.
override
makeManyWithJsonArray(int number, {bool growableList = false}) → List<FixtureTuple<Model>>
Create an array of both model and its relative JSON Object.
override
makeSingle() → Model
Create a single model.
override
makeSingleWithJsonObject() → FixtureTuple<Model>
Create a tuple of model and its relative JSON Object.
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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