DashboardGadgetPosition.fromJson constructor

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

Implementation

factory DashboardGadgetPosition.fromJson(Map<String, Object?> json) {
  return DashboardGadgetPosition(
    theColumnPositionOfTheGadget:
        (json[r'The column position of the gadget.'] as num?)?.toInt() ?? 0,
    theRowPositionOfTheGadget:
        (json[r'The row position of the gadget.'] as num?)?.toInt() ?? 0,
  );
}