RareStringData.fromJson constructor

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

Implementation

factory RareStringData.fromJson(Map<String, dynamic> json) {
  return RareStringData(
    index: (json['index'] as List).map((e) => e as int).toList(),
    value:
        (json['value'] as List)
            .map((e) => StringIndex.fromJson(e as int))
            .toList(),
  );
}