IrComponentVariant.fromJson constructor

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

Implementation

factory IrComponentVariant.fromJson(Map<String, Object?> json) =>
    IrComponentVariant(
      (json['props'] as Map).cast<String, String>(),
      uses: (json['uses'] as num?)?.toInt() ?? 1,
    );