toJson method

Object toJson()

Implementation

Object toJson() => isUniform
    ? topLeft
    : {
        'topLeft': topLeft,
        'topRight': topRight,
        'bottomRight': bottomRight,
        'bottomLeft': bottomLeft,
      };