CropProperties.fromJson constructor

CropProperties.fromJson(
  1. Map json_
)

Implementation

CropProperties.fromJson(core.Map json_)
    : this(
        angle: json_.containsKey('angle')
            ? (json_['angle'] as core.num).toDouble()
            : null,
        bottomOffset: json_.containsKey('bottomOffset')
            ? (json_['bottomOffset'] as core.num).toDouble()
            : null,
        leftOffset: json_.containsKey('leftOffset')
            ? (json_['leftOffset'] as core.num).toDouble()
            : null,
        rightOffset: json_.containsKey('rightOffset')
            ? (json_['rightOffset'] as core.num).toDouble()
            : null,
        topOffset: json_.containsKey('topOffset')
            ? (json_['topOffset'] as core.num).toDouble()
            : null,
      );