/// <summary>
 /// Serializes an individual resource.
 /// </summary>
 /// <param name="resourceType">Terraform type of the resource.</param>
 /// <param name="resourceName">Name of the resource</param>
 /// <param name="resourceAttributes">Resource attributes from state file.</param>
 public void Serialize(string resourceType, string resourceName, JObject resourceAttributes)
 {
     this.emitter.Emit(new ResourceStart(resourceType, resourceName));
     resourceAttributes.Accept(
         new EmitterVistor(),
         new EmitterContext(this.emitter, resourceType, resourceName));
     this.emitter.Emit(new ResourceEnd());
 }