Groupings.fromJson constructor

Groupings.fromJson(
  1. Map<String, Object?> json
)

Implementation

Groupings.fromJson(Map<String, Object?> json)
    : groupBy = ((v) => v != null
          ? (v as List)
              .map((v) => Group.fromJson(v as Map<String, Object?>))
              .toList()
          : null)(json['group_by']);