$UikOtpPropsFromJson function

UikOtpProps $UikOtpPropsFromJson(
  1. Map<String, dynamic> json
)

Implementation

UikOtpProps $UikOtpPropsFromJson(Map<String, dynamic> json) {
  final UikOtpProps uikOtpProps = UikOtpProps();
  final String? id = jsonConvert.convert<String>(json['id']);
  if (id != null) {
    uikOtpProps.id = id;
  }

  final UikAction? action = jsonConvert.convert<UikAction>(json['action']);
  if (action != null) {
    uikOtpProps.action = action;
  }
  return uikOtpProps;
}