ReplayScreen.fromJson constructor

ReplayScreen.fromJson(
  1. Map<String, dynamic> json
)

Implementation

factory ReplayScreen.fromJson(Map<String, dynamic> json) {
  return ReplayScreen(
    width: (json['width'] as int?) ?? 0,
    height: (json['height'] as int?) ?? 0,
    fixedRightWidth:
        (json['fixedRightWidth'] as int?) ??
        (json['rightFixedWidth'] as int?) ??
        0,
  );
}