updateEntity method

  1. @override
Future<PolicyPresentationEntity> updateEntity(
  1. String documentID,
  2. PolicyPresentationEntity value
)
override

Implementation

@override
Future<PolicyPresentationEntity> updateEntity(
    String documentID, PolicyPresentationEntity value) {
  return policyPresentationCollection
      .doc(documentID)
      .update(value.toDocument())
      .then((_) => value);
}