LavaDiffFrame.fromJson constructor

LavaDiffFrame.fromJson(
  1. Map<String, dynamic> json
)

Creates a LavaDiffFrame from a JSON object.

The JSON object must contain a 'diffs' field with an array of diff operations.

Implementation

factory LavaDiffFrame.fromJson(Map<String, dynamic> json) {
  return LavaDiffFrame(
    diffs: (json['diffs'] as List).map((row) => List<int>.from(row)).toList(),
  );
}