toEntity method

  1. @override
PolicyPresentationEntity toEntity({
  1. String? appId,
})
override

Implementation

@override
PolicyPresentationEntity toEntity({String? appId}) {
  return PolicyPresentationEntity(
    appId: appId,
    description: (description != null) ? description : null,
    policiesId: (policies != null) ? policies!.documentID : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}