in codegen/projections/rails_json/lib/rails_json/stubs.rb [1093:1124]
def self.stub(stub = {})
stub ||= {}
data = {}
data[:blob] = Base64::encode64(stub[:blob]) unless stub[:blob].nil?
data[:boolean] = stub[:boolean] unless stub[:boolean].nil?
data[:double] = stub[:double] unless stub[:double].nil?
data[:empty_struct] = Stubs::EmptyStruct.stub(stub[:empty_struct]) unless stub[:empty_struct].nil?
data[:float] = stub[:float] unless stub[:float].nil?
data[:httpdate_timestamp] = Seahorse::TimeHelper.to_http_date(stub[:httpdate_timestamp]) unless stub[:httpdate_timestamp].nil?
data[:integer] = stub[:integer] unless stub[:integer].nil?
data[:iso8601_timestamp] = Seahorse::TimeHelper.to_date_time(stub[:iso8601_timestamp]) unless stub[:iso8601_timestamp].nil?
data[:json_value] = stub[:json_value] unless stub[:json_value].nil?
data[:list_of_lists] = Stubs::ListOfListOfStrings.stub(stub[:list_of_lists]) unless stub[:list_of_lists].nil?
data[:list_of_maps_of_strings] = Stubs::ListOfMapsOfStrings.stub(stub[:list_of_maps_of_strings]) unless stub[:list_of_maps_of_strings].nil?
data[:list_of_strings] = Stubs::ListOfStrings.stub(stub[:list_of_strings]) unless stub[:list_of_strings].nil?
data[:list_of_structs] = Stubs::ListOfStructs.stub(stub[:list_of_structs]) unless stub[:list_of_structs].nil?
data[:long] = stub[:long] unless stub[:long].nil?
data[:map_of_lists_of_strings] = Stubs::MapOfListsOfStrings.stub(stub[:map_of_lists_of_strings]) unless stub[:map_of_lists_of_strings].nil?
data[:map_of_maps] = Stubs::MapOfMapOfStrings.stub(stub[:map_of_maps]) unless stub[:map_of_maps].nil?
data[:map_of_strings] = Stubs::MapOfStrings.stub(stub[:map_of_strings]) unless stub[:map_of_strings].nil?
data[:map_of_structs] = Stubs::MapOfStructs.stub(stub[:map_of_structs]) unless stub[:map_of_structs].nil?
data[:recursive_list] = Stubs::ListOfKitchenSinks.stub(stub[:recursive_list]) unless stub[:recursive_list].nil?
data[:recursive_map] = Stubs::MapOfKitchenSinks.stub(stub[:recursive_map]) unless stub[:recursive_map].nil?
data[:recursive_struct] = Stubs::KitchenSink.stub(stub[:recursive_struct]) unless stub[:recursive_struct].nil?
data[:simple_struct] = Stubs::SimpleStruct.stub(stub[:simple_struct]) unless stub[:simple_struct].nil?
data[:string] = stub[:string] unless stub[:string].nil?
data[:struct_with_location_name] = Stubs::StructWithLocationName.stub(stub[:struct_with_location_name]) unless stub[:struct_with_location_name].nil?
data[:timestamp] = Seahorse::TimeHelper.to_date_time(stub[:timestamp]) unless stub[:timestamp].nil?
data[:unix_timestamp] = Seahorse::TimeHelper.to_epoch_seconds(stub[:unix_timestamp]) unless stub[:unix_timestamp].nil?
data
end