Fields constructor

Fields([
  1. Map<String, Iterable<String>> fields = const {}
])

The fields argument maps the resource type to a list of fields.

Example:

Fields({'articles': ['title', 'body'], 'people': ['name']});

Implementation

Fields([Map<String, Iterable<String>> fields = const {}]) {
  addAll(fields);
}