FakeSerialization class
Properties
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
Static Methods
-
apiResponse({required String endpoint, dynamic data, int statusCode = 200, bool success = true, String? error})
→ Map<String, dynamic>
-
Generate API response format
-
exportDataset({int users = 10, int companies = 5, int products = 20, int orders = 50, String format = 'json'})
→ Map<String, dynamic>
-
Generate and export complete dataset
-
paginatedResponse({required List items, int page = 1, int limit = 20, int? total})
→ Map<String, dynamic>
-
Generate paginated response
-
toCsv(List<Map<String, dynamic>> data, {List<String>? columns})
→ String
-
Export list of maps to CSV string
-
toJson(dynamic data)
→ String
-
Export data to JSON string
-
toPrettyJson(dynamic data)
→ String
-
Export data to pretty JSON string
-
toSqlInserts(String tableName, List<Map<String, dynamic>> data)
→ String
-
Export to SQL INSERT statements