ReadingPosition.fromJson constructor

ReadingPosition.fromJson(
  1. Map json_
)

Implementation

ReadingPosition.fromJson(core.Map json_)
    : this(
        epubCfiPosition: json_.containsKey('epubCfiPosition')
            ? json_['epubCfiPosition'] as core.String
            : null,
        gbImagePosition: json_.containsKey('gbImagePosition')
            ? json_['gbImagePosition'] as core.String
            : null,
        gbTextPosition: json_.containsKey('gbTextPosition')
            ? json_['gbTextPosition'] as core.String
            : null,
        kind: json_.containsKey('kind') ? json_['kind'] as core.String : null,
        pdfPosition: json_.containsKey('pdfPosition')
            ? json_['pdfPosition'] as core.String
            : null,
        updated: json_.containsKey('updated')
            ? json_['updated'] as core.String
            : null,
        volumeId: json_.containsKey('volumeId')
            ? json_['volumeId'] as core.String
            : null,
      );