PathShift.fromJson constructor

PathShift.fromJson(
  1. Map<String, dynamic> data
)

Implementation

factory PathShift.fromJson(Map<String, dynamic> data) {
  return PathShift(jsonToOffset(data['offset'] as Map<String, dynamic>));
}