Cursor.fromJson constructor

Cursor.fromJson(
  1. Map _json
)

Implementation

Cursor.fromJson(core.Map _json)
    : this(
        before:
            _json.containsKey('before') ? _json['before'] as core.bool : null,
        values: _json.containsKey('values')
            ? (_json['values'] as core.List)
                .map((value) => Value.fromJson(
                    value as core.Map<core.String, core.dynamic>))
                .toList()
            : null,
      );