LabelSchema.fromJson constructor

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

Implementation

factory LabelSchema.fromJson(Map<String, dynamic> json) {
  return LabelSchema(
    labelMapper: (json['labelMapper'] as Map<String, dynamic>).map((k, e) =>
        MapEntry(
            k, (e as List).whereNotNull().map((e) => e as String).toList())),
  );
}