CommercioDocMetadata constructor

CommercioDocMetadata({
  1. required String contentUri,
  2. String? schemaType,
  3. CommercioDocMetadataSchema? schema,
})

Implementation

CommercioDocMetadata({
  required this.contentUri,
  this.schemaType,
  this.schema,
})  : assert(checkStringBytesLen(contentUri, 512)),
      assert((schemaType != null &&
              schemaType.isNotEmpty &&
              checkStringBytesLen(schemaType, 512)) ||
          schema != null);