# Category constructor

Category(

1. GenericDocument document

)

## Implementation

    Category(GenericDocument document) : super(document) {
      ///Valid from
      validFrom = document
          .fieldByTypeName("ValidFrom")!
          .let((field) => TextFieldWrapper(field));

      ///Valid until
      validUntil = document
          .fieldByTypeName("ValidUntil")!
          .let((field) => TextFieldWrapper(field));

      ///Restrictions
      restrictions = document
          .fieldByTypeName("Restrictions")!
          .let((field) => TextFieldWrapper(field));
    }