factory PolicyList.fromMap( Map<String, dynamic> map, ) { return PolicyList( total: map['total'], policies: List.from(map['policies'] ?? []), ); }