toJson method

Map<String, dynamic> toJson()

Implementation

core.Map<core.String, core.dynamic> toJson() => {
      if (group != null) 'group': group!,
      if (name != null) 'name': name!,
      if (ns != null) 'ns': ns!,
      if (resource != null) 'resource': resource!,
      if (subresource != null) 'subresource': subresource!,
      if (verb != null) 'verb': verb!,
      if (version != null) 'version': version!,
    };