build method
Implementation
Metadata build() {
if (key == null || list == null || nested == null) {
throw Exception("Missing required fields for Metadata");
}
return Metadata(
key: key!,
list: list!,
nested: nested!,
);
}
Metadata build() {
if (key == null || list == null || nested == null) {
throw Exception("Missing required fields for Metadata");
}
return Metadata(
key: key!,
list: list!,
nested: nested!,
);
}