toJson method
Implementation
Map<String, dynamic> toJson() {
final json = <String, dynamic>{};
json[r'id'] = id;
json[r'key'] = key;
if (l != null) {
json[r'l'] = l;
}
if (version != null) {
json[r'version'] = version;
}
if (type != null) {
json[r'type'] = type?.toJson();
}
if (value != null) {
json[r'value'] = value;
}
if (environmentId != null) {
json[r'environmentId'] = environmentId;
}
if (strategies.isNotEmpty) {
json[r'strategies'] =
((v) => v.map((v) => v.toJson()).toList())(strategies);
}
return json;
}