Expandable.fromJson constructor

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

Implementation

factory Expandable.fromJson(Map<String, Object?> json) {
  return Expandable(
    expands: (json[r'_expands'] as List<Object?>?)
            ?.map((i) => i as String? ?? '')
            .toList() ??
        [],
  );
}