Border.fromJson constructor

Border.fromJson(
  1. Map json_
)

Implementation

Border.fromJson(core.Map json_)
    : this(
        color: json_.containsKey('color')
            ? Color.fromJson(
                json_['color'] as core.Map<core.String, core.dynamic>)
            : null,
        colorStyle: json_.containsKey('colorStyle')
            ? ColorStyle.fromJson(
                json_['colorStyle'] as core.Map<core.String, core.dynamic>)
            : null,
        style:
            json_.containsKey('style') ? json_['style'] as core.String : null,
        width: json_.containsKey('width') ? json_['width'] as core.int : null,
      );