build method

Metadata build()

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!,
  );
}