fromJson method

  1. @override
ToolbarOptions? fromJson(
  1. Map<String, dynamic>? json
)
override

Implementation

@override
ToolbarOptions? fromJson(Map<String, dynamic>? json) {
  if (json == null) return null;

  return ToolbarOptions(
    copy: (json['copy'] as bool),
    cut: (json['cut'] as bool),
    paste: (json['paste'] as bool),
    selectAll: (json['selectAll'] as bool),
  );
}