TextBoxSnapshot.fromJson constructor

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

Implementation

factory TextBoxSnapshot.fromJson(Map<String, dynamic> json) {
  return TextBoxSnapshot(
    layoutIndex: (json['layoutIndex'] as List).map((e) => e as int).toList(),
    bounds: (json['bounds'] as List)
        .map((e) => Rectangle.fromJson(e as List))
        .toList(),
    start: (json['start'] as List).map((e) => e as int).toList(),
    length: (json['length'] as List).map((e) => e as int).toList(),
  );
}