toEntity method

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

Implementation

@override
MemberCartEntity toEntity({String? appId}) {
  return MemberCartEntity(
    appId: appId,
    cartItems: (cartItems != null)
        ? cartItems!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
  );
}