toEntity method

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

Implementation

@override
GridEntity toEntity({String? appId}) {
  return GridEntity(
    appId: appId,
    description: (description != null) ? description : null,
    bodyComponents: (bodyComponents != null)
        ? bodyComponents!.map((item) => item.toEntity(appId: appId)).toList()
        : null,
    gridViewId: (gridView != null) ? gridView!.documentID : null,
    conditions:
        (conditions != null) ? conditions!.toEntity(appId: appId) : null,
  );
}