toJsonLd method

  1. @override
Map<String, dynamic> toJsonLd()
override

Serialize SchemaResidence to JSON-LD

Implementation

@override
Map<String, dynamic> toJsonLd() => removeEmpty({
      ...super.toJsonLd(),
      '@type': 'Residence',
      'accommodationFloorPlan':
          convertToJsonLd(accommodationFloorPlan, [SchemaFloorPlan]),
      'floorLevel': convertToJsonLd(floorLevel, [String]),
    });