toEntity method
Implementation
@override
GridViewEntity toEntity({String? appId}) {
return GridViewEntity(
appId: appId,
name: (name != null) ? name : null,
scrollDirection:
(scrollDirection != null) ? scrollDirection!.index : null,
type: (type != null) ? type!.index : null,
crossAxisCount: (crossAxisCount != null) ? crossAxisCount : null,
maxCrossAxisExtentType: (maxCrossAxisExtentType != null)
? maxCrossAxisExtentType!.index
: null,
absoluteMaxCrossAxisExtent: (absoluteMaxCrossAxisExtent != null)
? absoluteMaxCrossAxisExtent
: null,
relativeMaxCrossAxisExtent: (relativeMaxCrossAxisExtent != null)
? relativeMaxCrossAxisExtent
: null,
childAspectRatio: (childAspectRatio != null) ? childAspectRatio : null,
padding: (padding != null) ? padding : null,
mainAxisSpacing: (mainAxisSpacing != null) ? mainAxisSpacing : null,
crossAxisSpacing: (crossAxisSpacing != null) ? crossAxisSpacing : null,
conditions:
(conditions != null) ? conditions!.toEntity(appId: appId) : null,
);
}