LineProperties.fromJson constructor

LineProperties.fromJson(
  1. Map json_
)

Implementation

LineProperties.fromJson(core.Map json_)
    : this(
        dashStyle: json_.containsKey('dashStyle')
            ? json_['dashStyle'] as core.String
            : null,
        endArrow: json_.containsKey('endArrow')
            ? json_['endArrow'] as core.String
            : null,
        endConnection: json_.containsKey('endConnection')
            ? LineConnection.fromJson(
                json_['endConnection'] as core.Map<core.String, core.dynamic>)
            : null,
        lineFill: json_.containsKey('lineFill')
            ? LineFill.fromJson(
                json_['lineFill'] as core.Map<core.String, core.dynamic>)
            : null,
        link: json_.containsKey('link')
            ? Link.fromJson(
                json_['link'] as core.Map<core.String, core.dynamic>)
            : null,
        startArrow: json_.containsKey('startArrow')
            ? json_['startArrow'] as core.String
            : null,
        startConnection: json_.containsKey('startConnection')
            ? LineConnection.fromJson(json_['startConnection']
                as core.Map<core.String, core.dynamic>)
            : null,
        weight: json_.containsKey('weight')
            ? Dimension.fromJson(
                json_['weight'] as core.Map<core.String, core.dynamic>)
            : null,
      );