ApproximateSplitRequest.fromJson constructor

ApproximateSplitRequest.fromJson(
  1. Map _json
)

Implementation

ApproximateSplitRequest.fromJson(core.Map _json)
    : this(
        fractionConsumed: _json.containsKey('fractionConsumed')
            ? (_json['fractionConsumed'] as core.num).toDouble()
            : null,
        fractionOfRemainder: _json.containsKey('fractionOfRemainder')
            ? (_json['fractionOfRemainder'] as core.num).toDouble()
            : null,
        position: _json.containsKey('position')
            ? Position.fromJson(
                _json['position'] as core.Map<core.String, core.dynamic>)
            : null,
      );