public static Resource ToPoco(this RawResourceElement resource, ResourceDeserializer deserializer) { EnsureArg.IsNotNull(resource, nameof(resource)); EnsureArg.IsNotNull(deserializer, nameof(deserializer)); return(resource.ToPoco <Resource>(deserializer)); }
public static ResourceElement ToResourceElement(this RawResourceElement resource, ResourceDeserializer deserializer) { EnsureArg.IsNotNull(resource, nameof(resource)); return(resource.ToPoco(deserializer).ToResourceElement()); }