fromJson static method

CustomizationMatrices fromJson(
  1. dynamic jsonObject
)

Allows you to deserialize object.

Implementation

static CustomizationMatrices fromJson(jsonObject) {
  var result = CustomizationMatrices();
  if (jsonObject == null) return result;
  result.testSetters = {};

  if (jsonObject["nextPageIdCardFront"] != null) {
    List<double> array = [];
    for (var value in jsonObject["nextPageIdCardFront"]) {
      array.add(value.toDouble());
    }
    result.nextPageIdCardFront = array;
  } else {
    result.nextPageIdCardFront = null;
  }

  if (jsonObject["nextPageIdCardBack"] != null) {
    List<double> array = [];
    for (var value in jsonObject["nextPageIdCardBack"]) {
      array.add(value.toDouble());
    }
    result.nextPageIdCardBack = array;
  } else {
    result.nextPageIdCardBack = null;
  }

  return result;
}