* @param map
* @return
*/
public static final Platform getPlatform(Map<String, Object> map)
{
Platform platform = null;
if ( map != null && map.size() > 0 )
{
Object o = map.get( TestLinkResponseParams.id.toString());
if ( o != null )
{
Integer id = Integer.parseInt( o.toString() );
if ( id > 0 )
{
platform = new Platform();
platform.setId( id );
platform.setName( getString(map, TestLinkResponseParams.name.toString()) );
platform.setNotes( getString(map, TestLinkResponseParams.notes.toString()) );
}
}
}
return platform;