mirror of
https://github.com/hanzo-dart/sdk.git
synced 2026-10-30 19:32:47 +00:00
288 of hanzoai/ai's 294 operations now declare a response, against 1 before. GET /v1/models, POST /v1/chat/completions, /v1/embeddings, /v1/messages — every address a client actually calls — used to reach this client untyped, because cloud's relay carried an operation's sentence and dropped the shapes it named. It carries both now. Fleet-wide the document goes from 69% to 81% of operations declaring what comes back, which is where the ~208 new models here come from.
628 lines
23 KiB
Dart
628 lines
23 KiB
Dart
//
|
|
// AUTO-GENERATED FILE, DO NOT MODIFY!
|
|
//
|
|
// @dart=2.18
|
|
|
|
// ignore_for_file: unused_element, unused_import
|
|
// ignore_for_file: always_put_required_named_parameters_first
|
|
// ignore_for_file: constant_identifier_names
|
|
// ignore_for_file: lines_longer_than_80_chars
|
|
|
|
part of hanzoai.cloud;
|
|
|
|
class Audit {
|
|
/// Returns a new [Audit] instance.
|
|
Audit({
|
|
this.action,
|
|
this.block,
|
|
this.block2,
|
|
this.blockHash,
|
|
this.blockHash2,
|
|
this.city,
|
|
this.clientIp,
|
|
this.count,
|
|
this.createdTime,
|
|
this.errorText,
|
|
this.id,
|
|
this.isTriggered,
|
|
this.language,
|
|
this.method,
|
|
this.name,
|
|
this.needCommit,
|
|
this.object,
|
|
this.organization,
|
|
this.owner,
|
|
this.provider,
|
|
this.provider2,
|
|
this.query,
|
|
this.region,
|
|
this.requestUri,
|
|
this.response,
|
|
this.section,
|
|
this.transaction,
|
|
this.transaction2,
|
|
this.unit,
|
|
this.user,
|
|
this.userAgent,
|
|
});
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? action;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? block;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? block2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? blockHash;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? blockHash2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? city;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? clientIp;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
int? count;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? createdTime;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? errorText;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
int? id;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? isTriggered;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? language;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? method;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? name;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
bool? needCommit;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? object;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? organization;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? owner;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? provider;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? provider2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? query;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? region;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? requestUri;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? response;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? section;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? transaction;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? transaction2;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? unit;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? user;
|
|
|
|
///
|
|
/// Please note: This property should have been non-nullable! Since the specification file
|
|
/// does not include a default value (using the "default:" property), however, the generated
|
|
/// source code must fall back to having a nullable type.
|
|
/// Consider adding a "default:" property in the specification file to hide this note.
|
|
///
|
|
String? userAgent;
|
|
|
|
@override
|
|
bool operator ==(Object other) => identical(this, other) || other is Audit &&
|
|
other.action == action &&
|
|
other.block == block &&
|
|
other.block2 == block2 &&
|
|
other.blockHash == blockHash &&
|
|
other.blockHash2 == blockHash2 &&
|
|
other.city == city &&
|
|
other.clientIp == clientIp &&
|
|
other.count == count &&
|
|
other.createdTime == createdTime &&
|
|
other.errorText == errorText &&
|
|
other.id == id &&
|
|
other.isTriggered == isTriggered &&
|
|
other.language == language &&
|
|
other.method == method &&
|
|
other.name == name &&
|
|
other.needCommit == needCommit &&
|
|
other.object == object &&
|
|
other.organization == organization &&
|
|
other.owner == owner &&
|
|
other.provider == provider &&
|
|
other.provider2 == provider2 &&
|
|
other.query == query &&
|
|
other.region == region &&
|
|
other.requestUri == requestUri &&
|
|
other.response == response &&
|
|
other.section == section &&
|
|
other.transaction == transaction &&
|
|
other.transaction2 == transaction2 &&
|
|
other.unit == unit &&
|
|
other.user == user &&
|
|
other.userAgent == userAgent;
|
|
|
|
@override
|
|
int get hashCode =>
|
|
// ignore: unnecessary_parenthesis
|
|
(action == null ? 0 : action!.hashCode) +
|
|
(block == null ? 0 : block!.hashCode) +
|
|
(block2 == null ? 0 : block2!.hashCode) +
|
|
(blockHash == null ? 0 : blockHash!.hashCode) +
|
|
(blockHash2 == null ? 0 : blockHash2!.hashCode) +
|
|
(city == null ? 0 : city!.hashCode) +
|
|
(clientIp == null ? 0 : clientIp!.hashCode) +
|
|
(count == null ? 0 : count!.hashCode) +
|
|
(createdTime == null ? 0 : createdTime!.hashCode) +
|
|
(errorText == null ? 0 : errorText!.hashCode) +
|
|
(id == null ? 0 : id!.hashCode) +
|
|
(isTriggered == null ? 0 : isTriggered!.hashCode) +
|
|
(language == null ? 0 : language!.hashCode) +
|
|
(method == null ? 0 : method!.hashCode) +
|
|
(name == null ? 0 : name!.hashCode) +
|
|
(needCommit == null ? 0 : needCommit!.hashCode) +
|
|
(object == null ? 0 : object!.hashCode) +
|
|
(organization == null ? 0 : organization!.hashCode) +
|
|
(owner == null ? 0 : owner!.hashCode) +
|
|
(provider == null ? 0 : provider!.hashCode) +
|
|
(provider2 == null ? 0 : provider2!.hashCode) +
|
|
(query == null ? 0 : query!.hashCode) +
|
|
(region == null ? 0 : region!.hashCode) +
|
|
(requestUri == null ? 0 : requestUri!.hashCode) +
|
|
(response == null ? 0 : response!.hashCode) +
|
|
(section == null ? 0 : section!.hashCode) +
|
|
(transaction == null ? 0 : transaction!.hashCode) +
|
|
(transaction2 == null ? 0 : transaction2!.hashCode) +
|
|
(unit == null ? 0 : unit!.hashCode) +
|
|
(user == null ? 0 : user!.hashCode) +
|
|
(userAgent == null ? 0 : userAgent!.hashCode);
|
|
|
|
@override
|
|
String toString() => 'Audit[action=$action, block=$block, block2=$block2, blockHash=$blockHash, blockHash2=$blockHash2, city=$city, clientIp=$clientIp, count=$count, createdTime=$createdTime, errorText=$errorText, id=$id, isTriggered=$isTriggered, language=$language, method=$method, name=$name, needCommit=$needCommit, object=$object, organization=$organization, owner=$owner, provider=$provider, provider2=$provider2, query=$query, region=$region, requestUri=$requestUri, response=$response, section=$section, transaction=$transaction, transaction2=$transaction2, unit=$unit, user=$user, userAgent=$userAgent]';
|
|
|
|
Map<String, dynamic> toJson() {
|
|
final json = <String, dynamic>{};
|
|
if (this.action != null) {
|
|
json[r'action'] = this.action;
|
|
} else {
|
|
json[r'action'] = null;
|
|
}
|
|
if (this.block != null) {
|
|
json[r'block'] = this.block;
|
|
} else {
|
|
json[r'block'] = null;
|
|
}
|
|
if (this.block2 != null) {
|
|
json[r'block2'] = this.block2;
|
|
} else {
|
|
json[r'block2'] = null;
|
|
}
|
|
if (this.blockHash != null) {
|
|
json[r'blockHash'] = this.blockHash;
|
|
} else {
|
|
json[r'blockHash'] = null;
|
|
}
|
|
if (this.blockHash2 != null) {
|
|
json[r'blockHash2'] = this.blockHash2;
|
|
} else {
|
|
json[r'blockHash2'] = null;
|
|
}
|
|
if (this.city != null) {
|
|
json[r'city'] = this.city;
|
|
} else {
|
|
json[r'city'] = null;
|
|
}
|
|
if (this.clientIp != null) {
|
|
json[r'clientIp'] = this.clientIp;
|
|
} else {
|
|
json[r'clientIp'] = null;
|
|
}
|
|
if (this.count != null) {
|
|
json[r'count'] = this.count;
|
|
} else {
|
|
json[r'count'] = null;
|
|
}
|
|
if (this.createdTime != null) {
|
|
json[r'createdTime'] = this.createdTime;
|
|
} else {
|
|
json[r'createdTime'] = null;
|
|
}
|
|
if (this.errorText != null) {
|
|
json[r'errorText'] = this.errorText;
|
|
} else {
|
|
json[r'errorText'] = null;
|
|
}
|
|
if (this.id != null) {
|
|
json[r'id'] = this.id;
|
|
} else {
|
|
json[r'id'] = null;
|
|
}
|
|
if (this.isTriggered != null) {
|
|
json[r'isTriggered'] = this.isTriggered;
|
|
} else {
|
|
json[r'isTriggered'] = null;
|
|
}
|
|
if (this.language != null) {
|
|
json[r'language'] = this.language;
|
|
} else {
|
|
json[r'language'] = null;
|
|
}
|
|
if (this.method != null) {
|
|
json[r'method'] = this.method;
|
|
} else {
|
|
json[r'method'] = null;
|
|
}
|
|
if (this.name != null) {
|
|
json[r'name'] = this.name;
|
|
} else {
|
|
json[r'name'] = null;
|
|
}
|
|
if (this.needCommit != null) {
|
|
json[r'needCommit'] = this.needCommit;
|
|
} else {
|
|
json[r'needCommit'] = null;
|
|
}
|
|
if (this.object != null) {
|
|
json[r'object'] = this.object;
|
|
} else {
|
|
json[r'object'] = null;
|
|
}
|
|
if (this.organization != null) {
|
|
json[r'organization'] = this.organization;
|
|
} else {
|
|
json[r'organization'] = null;
|
|
}
|
|
if (this.owner != null) {
|
|
json[r'owner'] = this.owner;
|
|
} else {
|
|
json[r'owner'] = null;
|
|
}
|
|
if (this.provider != null) {
|
|
json[r'provider'] = this.provider;
|
|
} else {
|
|
json[r'provider'] = null;
|
|
}
|
|
if (this.provider2 != null) {
|
|
json[r'provider2'] = this.provider2;
|
|
} else {
|
|
json[r'provider2'] = null;
|
|
}
|
|
if (this.query != null) {
|
|
json[r'query'] = this.query;
|
|
} else {
|
|
json[r'query'] = null;
|
|
}
|
|
if (this.region != null) {
|
|
json[r'region'] = this.region;
|
|
} else {
|
|
json[r'region'] = null;
|
|
}
|
|
if (this.requestUri != null) {
|
|
json[r'requestUri'] = this.requestUri;
|
|
} else {
|
|
json[r'requestUri'] = null;
|
|
}
|
|
if (this.response != null) {
|
|
json[r'response'] = this.response;
|
|
} else {
|
|
json[r'response'] = null;
|
|
}
|
|
if (this.section != null) {
|
|
json[r'section'] = this.section;
|
|
} else {
|
|
json[r'section'] = null;
|
|
}
|
|
if (this.transaction != null) {
|
|
json[r'transaction'] = this.transaction;
|
|
} else {
|
|
json[r'transaction'] = null;
|
|
}
|
|
if (this.transaction2 != null) {
|
|
json[r'transaction2'] = this.transaction2;
|
|
} else {
|
|
json[r'transaction2'] = null;
|
|
}
|
|
if (this.unit != null) {
|
|
json[r'unit'] = this.unit;
|
|
} else {
|
|
json[r'unit'] = null;
|
|
}
|
|
if (this.user != null) {
|
|
json[r'user'] = this.user;
|
|
} else {
|
|
json[r'user'] = null;
|
|
}
|
|
if (this.userAgent != null) {
|
|
json[r'userAgent'] = this.userAgent;
|
|
} else {
|
|
json[r'userAgent'] = null;
|
|
}
|
|
return json;
|
|
}
|
|
|
|
/// Returns a new [Audit] instance and imports its values from
|
|
/// [value] if it's a [Map], null otherwise.
|
|
// ignore: prefer_constructors_over_static_methods
|
|
static Audit? fromJson(dynamic value) {
|
|
if (value is Map) {
|
|
final json = value.cast<String, dynamic>();
|
|
|
|
// Ensure that the map contains the required keys.
|
|
// Note 1: the values aren't checked for validity beyond being non-null.
|
|
// Note 2: this code is stripped in release mode!
|
|
assert(() {
|
|
requiredKeys.forEach((key) {
|
|
assert(json.containsKey(key), 'Required key "Audit[$key]" is missing from JSON.');
|
|
assert(json[key] != null, 'Required key "Audit[$key]" has a null value in JSON.');
|
|
});
|
|
return true;
|
|
}());
|
|
|
|
return Audit(
|
|
action: mapValueOfType<String>(json, r'action'),
|
|
block: mapValueOfType<String>(json, r'block'),
|
|
block2: mapValueOfType<String>(json, r'block2'),
|
|
blockHash: mapValueOfType<String>(json, r'blockHash'),
|
|
blockHash2: mapValueOfType<String>(json, r'blockHash2'),
|
|
city: mapValueOfType<String>(json, r'city'),
|
|
clientIp: mapValueOfType<String>(json, r'clientIp'),
|
|
count: mapValueOfType<int>(json, r'count'),
|
|
createdTime: mapValueOfType<String>(json, r'createdTime'),
|
|
errorText: mapValueOfType<String>(json, r'errorText'),
|
|
id: mapValueOfType<int>(json, r'id'),
|
|
isTriggered: mapValueOfType<bool>(json, r'isTriggered'),
|
|
language: mapValueOfType<String>(json, r'language'),
|
|
method: mapValueOfType<String>(json, r'method'),
|
|
name: mapValueOfType<String>(json, r'name'),
|
|
needCommit: mapValueOfType<bool>(json, r'needCommit'),
|
|
object: mapValueOfType<String>(json, r'object'),
|
|
organization: mapValueOfType<String>(json, r'organization'),
|
|
owner: mapValueOfType<String>(json, r'owner'),
|
|
provider: mapValueOfType<String>(json, r'provider'),
|
|
provider2: mapValueOfType<String>(json, r'provider2'),
|
|
query: mapValueOfType<String>(json, r'query'),
|
|
region: mapValueOfType<String>(json, r'region'),
|
|
requestUri: mapValueOfType<String>(json, r'requestUri'),
|
|
response: mapValueOfType<String>(json, r'response'),
|
|
section: mapValueOfType<String>(json, r'section'),
|
|
transaction: mapValueOfType<String>(json, r'transaction'),
|
|
transaction2: mapValueOfType<String>(json, r'transaction2'),
|
|
unit: mapValueOfType<String>(json, r'unit'),
|
|
user: mapValueOfType<String>(json, r'user'),
|
|
userAgent: mapValueOfType<String>(json, r'userAgent'),
|
|
);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
static List<Audit> listFromJson(dynamic json, {bool growable = false,}) {
|
|
final result = <Audit>[];
|
|
if (json is List && json.isNotEmpty) {
|
|
for (final row in json) {
|
|
final value = Audit.fromJson(row);
|
|
if (value != null) {
|
|
result.add(value);
|
|
}
|
|
}
|
|
}
|
|
return result.toList(growable: growable);
|
|
}
|
|
|
|
static Map<String, Audit> mapFromJson(dynamic json) {
|
|
final map = <String, Audit>{};
|
|
if (json is Map && json.isNotEmpty) {
|
|
json = json.cast<String, dynamic>(); // ignore: parameter_assignments
|
|
for (final entry in json.entries) {
|
|
final value = Audit.fromJson(entry.value);
|
|
if (value != null) {
|
|
map[entry.key] = value;
|
|
}
|
|
}
|
|
}
|
|
return map;
|
|
}
|
|
|
|
// maps a json object with a list of Audit-objects as value to a dart map
|
|
static Map<String, List<Audit>> mapListFromJson(dynamic json, {bool growable = false,}) {
|
|
final map = <String, List<Audit>>{};
|
|
if (json is Map && json.isNotEmpty) {
|
|
// ignore: parameter_assignments
|
|
json = json.cast<String, dynamic>();
|
|
for (final entry in json.entries) {
|
|
map[entry.key] = Audit.listFromJson(entry.value, growable: growable,);
|
|
}
|
|
}
|
|
return map;
|
|
}
|
|
|
|
/// The list of required keys that must be present in a JSON.
|
|
static const requiredKeys = <String>{
|
|
};
|
|
}
|
|
|