public void Populate <T>(object modelObject, string assemblyWithResource) where T : class { using (var dataStream = _dataStreamHelper.GetResourceStream <T>(".json", assemblyWithResource)) { _jsonDeserializer.DeserializeToExisting(dataStream, modelObject); } }