Map<String, dynamic> toMap() => { 'customID': customID, 'status': status, 'type': type, 'fenceID': fenceID, 'fence': fence?.toMap() };