fromState static method

SdkDeployTask fromState(
  1. Map<String, dynamic> state
)

Implementation

static SdkDeployTask fromState(Map<String, dynamic> state) {
  final params = <String, String>{};
  state.forEach((key, value) {
    if (value is String) params[key] = value;
  });
  return SdkDeployTask(
    hwTarget: state['hw_target'] as String?,
    mode: state['mode'] as String?,
    params: params,
  );
}