toMap method

Map<String, dynamic> toMap({
  1. bool withId = true,
})

If withId is true, will send the id in the map

Implementation

Map<String, dynamic> toMap({bool withId = true}) {
  return {
    if (withId) 'Id': id,
    'FullyQualifiedName': fullyQualifiedName,
    'domain': domain,
    'Name': name,
    'SyncToken': syncToken,
    'sparse': sparse,
    'Active': active,
    'Type': 'Category',
  };
}