29 lines
841 B
Dart
29 lines
841 B
Dart
/// Egy tulajdonos/kezelő a levél-pipeline importjából — tisztán online,
|
|
/// nincs helyi tükör.
|
|
class FieldParty {
|
|
final String id;
|
|
final String publicationId;
|
|
final String name;
|
|
final String partyType;
|
|
final String? settlement;
|
|
final int propertyCount;
|
|
|
|
const FieldParty({
|
|
required this.id,
|
|
required this.publicationId,
|
|
required this.name,
|
|
required this.partyType,
|
|
this.settlement,
|
|
required this.propertyCount,
|
|
});
|
|
|
|
factory FieldParty.fromMap(Map<String, dynamic> m) => FieldParty(
|
|
id: m['id'] as String,
|
|
publicationId: m['publication_id'] as String,
|
|
name: m['name'] as String? ?? '',
|
|
partyType: m['party_type'] as String? ?? '',
|
|
settlement: m['settlement'] as String?,
|
|
propertyCount: (m['property_count'] as num?)?.toInt() ?? 0,
|
|
);
|
|
}
|