ShareInfo.fromJson constructor

ShareInfo.fromJson(
  1. Map json_
)

Implementation

ShareInfo.fromJson(core.Map json_)
    : this(
        isJoinable: json_.containsKey('isJoinable')
            ? json_['isJoinable'] as core.bool
            : null,
        isJoined: json_.containsKey('isJoined')
            ? json_['isJoined'] as core.bool
            : null,
        isOwned: json_.containsKey('isOwned')
            ? json_['isOwned'] as core.bool
            : null,
        shareToken: json_.containsKey('shareToken')
            ? json_['shareToken'] as core.String
            : null,
        shareableUrl: json_.containsKey('shareableUrl')
            ? json_['shareableUrl'] as core.String
            : null,
        sharedAlbumOptions: json_.containsKey('sharedAlbumOptions')
            ? SharedAlbumOptions.fromJson(json_['sharedAlbumOptions']
                as core.Map<core.String, core.dynamic>)
            : null,
      );