StoryReaderConfig.fromMap constructor

StoryReaderConfig.fromMap(
  1. Map<String, dynamic> map
)

从Map创建配置

Implementation

factory StoryReaderConfig.fromMap(Map<String, dynamic> map) {
  return StoryReaderConfig(
    storyId: map['storyId'] as int,
    startChapter: map['startChapter'] as int?,
    defaultTextSize: map['defaultTextSize'] as int?,
    endPageRecSize: map['endPageRecSize'] as int?,
    hideBack: map['hideBack'] as bool?,
    pageTurnType: map['pageTurnType'] as int?,
    fontSizeLevel: map['fontSizeLevel'] as int?,
    customMiddlePageAdViewId: map['customMiddlePageAdViewId'] as String?,
    middlePageInterval: map['middlePageInterval'] as int?,
    customMiddleLineAdViewId: map['customMiddleLineAdViewId'] as String?,
    middleLineStartLine: map['middleLineStartLine'] as int?,
    middleLineInterval: map['middleLineInterval'] as int?,
    customBannerAdViewId: map['customBannerAdViewId'] as String?,
  );
}