borderSideFromJSON function

BorderSide? borderSideFromJSON(
  1. ThemeData? theme,
  2. dynamic json, [
  3. Color? defaultSideColor
])

Implementation

BorderSide? borderSideFromJSON(ThemeData? theme, dynamic json,
    [Color? defaultSideColor]) {
  return json != null
      ? BorderSide(
          color:
              parseColor(theme, json['c'], defaultSideColor ?? Colors.black)!,
          width: parseDouble(json['w'], 1)!,
          strokeAlign: parseDouble(json['sa'], BorderSide.strokeAlignInside)!,
          style: BorderStyle.solid)
      : null;
}