decode static method

NavigationBackButton? decode(
  1. dynamic json
)

Implementation

static NavigationBackButton? decode(dynamic json) {
  if (json == null) {
    return null;
  }
  if (json is! Map<String, dynamic>) {
    return null;
  }

  return NavigationBackButton(
    title: StringDecoder.decode(json['title']),
    color: Color.decode(json['color']),
    visible: BooleanDecoder.decode(json['visible']),
  );
}